mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* chore: add unit tests for pkg/utils/wildcard Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> * testify Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
7 lines
138 B
Go
7 lines
138 B
Go
package wildcard
|
|
|
|
import "strings"
|
|
|
|
func ContainsWildcard(v string) bool {
|
|
return strings.Contains(v, "*") || strings.Contains(v, "?")
|
|
}
|