1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-15 01:00:05 +00:00

fix(key): Revert support for ( and ) as name/group, as they already worked before (#1356)

Relevant: #1340
This commit is contained in:
TwiN
2025-10-20 13:50:02 -04:00
committed by GitHub
parent 70d7d0c54c
commit d24c66cf96
3 changed files with 19 additions and 21 deletions

View File

@@ -15,8 +15,6 @@ 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