working commit

This commit is contained in:
2026-03-01 21:35:52 +02:00
parent 32c9cc26fc
commit 7bc972ba76
7 changed files with 385 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package repocli
import (
"regexp"
)
const uuidRegex = `^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`
func isUUID(src string) bool {
re := regexp.MustCompile(uuidRegex)
return re.MatchString(src)
}