Skip to content

Commit b3cf898

Browse files
authored
Merge pull request #4656 from kersten/chore/remove-unused-replaceregexinfile
🌱 (chore) add comment to clarify usage context of ReplaceRegexInFile
2 parents 4d1a69e + 20187d8 commit b3cf898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/plugin/util/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ func ReplaceInFile(path, oldValue, newValue string) error {
243243

244244
// ReplaceRegexInFile finds all strings that match `match` and replaces them
245245
// with `replace` in the file at path.
246+
//
247+
// This function is currently unused in the Kubebuilder codebase,
248+
// but is used by other projects and may be used in Kubebuilder in the future.
246249
func ReplaceRegexInFile(path, match, replace string) error {
247250
matcher, err := regexp.Compile(match)
248251
if err != nil {

0 commit comments

Comments
 (0)