Files
Paul NicolasandGitHub ebba4a40e9 feat(temporal): return an error when error translating PSP data (#416)
* feat(temporal): return an error when error translating PSP data

* add asset check
2025-04-16 17:00:26 +02:00

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))
}