fix(key): Support (, ), + and & as name/group (#1340)

fix(key): Support (, ), + and & as name/group

Relevant: #1339
This commit is contained in:
TwiN authored and GitHub committed 2025-10-16 16:47:11 -04:00
1 parent 39981de54b
commit ebd4068aac
3 files changed
+28 -9

No files matched your search

+5 -1
View File
@@ -15,5 +15,9 @@ func sanitize(s string) string {
s = strings.ReplaceAll(s, ",", "-")
s = strings.ReplaceAll(s, " ", "-")
s = strings.ReplaceAll(s, "#", "-")
s = strings.ReplaceAll(s, "(", "-")
s = strings.ReplaceAll(s, ")", "-")
s = strings.ReplaceAll(s, "+", "-")
s = strings.ReplaceAll(s, "&", "-")
return s
}
}