Skip to content

Commit 20187d8

Browse files
committed
util: clarify usage context of ReplaceRegexInFile
Update the comment to note that the function is currently unused in the Kubebuilder codebase, but used by other projects and may be used internally in the future.
1 parent e3658a6 commit 20187d8

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
@@ -245,6 +245,9 @@ func ReplaceInFile(path, oldValue, newValue string) error {
245245

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

0 commit comments

Comments
 (0)