(s string)
| 70 | var _alphaNumericDashRegex = regexp.MustCompile(`^[a-zA-Z0-9\-]+$`) |
| 71 | |
| 72 | func IsAlphaNumericDash(s string) bool { |
| 73 | return _alphaNumericDashRegex.MatchString(s) |
| 74 | } |
| 75 | |
| 76 | // used the evaluated form of |
| 77 | // https://github.com/docker/distribution/blob/3150937b9f2b1b5b096b2634d0e7c44d4a0f89fb/reference/regexp.go#L68-L70 |