Skip to content

Commit

Permalink
Don't export matchesRegex function
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Haram Nygård <[email protected]>
  • Loading branch information
SnorreSelmer and martinhny authored Nov 6, 2024
1 parent eb0ab78 commit 63f32df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resourcegenerator/resourceutils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ShouldScaleToZero(jsonReplicas *apiextensionsv1.JSON) bool {
}

// MatchesRegex checks if a string matches a regexp
func MatchesRegex(s string, pattern string) bool {
func matchesRegex(s string, pattern string) bool {
obj, err := regexp.Match(pattern, []byte(s))
return obj && err == nil
}
Expand Down

0 comments on commit 63f32df

Please sign in to comment.