1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/cmd/cli/kubectl-kyverno/source/http.go
Charles-Edouard Brétéché cbeb5157d6
refactor: cli policy package (#8279)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-05 23:01:31 +00:00

11 lines
164 B
Go

package source
import (
"regexp"
)
var isHTTPRegex = regexp.MustCompile("^(http|https)://")
func IsHttp(in string) bool {
return isHTTPRegex.MatchString(in)
}