mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* refactor cli code from pkg to cmd Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com> * fixes in imports Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com> * fixes tests Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com> * fixed conflicts Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com> * moved non-commands to utils Signed-off-by: Mritunjay Sharma <mritunjaysharma394@gmail.com> Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
11 lines
268 B
Go
11 lines
268 B
Go
package common
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
// RegexVariables represents regex for '{{}}'
|
|
var RegexVariables = regexp.MustCompile(`\{\{[^{}]*\}\}`)
|
|
|
|
// IsHTTPRegex represents regex for starts with http:// or https://
|
|
var IsHTTPRegex = regexp.MustCompile("^(http|https)://")
|