Allow unicode letters/numbers in topics (#597)

This commit is contained in:
Thomas Miceli
2026-01-25 22:08:14 +08:00
committed by GitHub
parent a17effb10f
commit 67f7c4cadd

View File

@@ -92,7 +92,7 @@ func validateGistTopics(fl validator.FieldLevel) bool {
if len(tag) > 50 {
return false
}
if !regexp.MustCompile(`^[a-zA-Z0-9-]+$`).MatchString(tag) {
if !regexp.MustCompile(`^[\p{L}\p{N}-]+$`).MatchString(tag) {
return false
}
}