mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
14 lines
207 B
Go
14 lines
207 B
Go
package assets
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
const Pattern = `[A-Z][A-Z0-9]{0,16}(\/\d{1,6})?`
|
|
|
|
var Regexp = regexp.MustCompile("^" + Pattern + "$")
|
|
|
|
func IsValid(v string) bool {
|
|
return Regexp.Match([]byte(v))
|
|
}
|