mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
misc: use raw string for regex to avoid double esc
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
3c495861a1
commit
a2a3b4f00f
1 changed files with 1 additions and 1 deletions
|
|
@ -165,6 +165,6 @@ func parseLabels() (map[string]string, error) {
|
|||
}
|
||||
|
||||
func validateObjectName(name string) bool {
|
||||
r := regexp.MustCompile("^[a-z0-9]([a-z0-9\\-]){0,61}[a-z0-9]$")
|
||||
r := regexp.MustCompile(`^[a-z0-9]([a-z0-9\-]){0,61}[a-z0-9]$`)
|
||||
return r.MatchString(name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue