aboutsummaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.go b/util.go
index c811a1e..c1da665 100644
--- a/util.go
+++ b/util.go
@@ -50,7 +50,7 @@ func safeStringForId(in string) string {
id2 += "__"
} else if c == ':' {
id2 += "_"
- } else if unicode.IsDigit(c) || unicode.IsLetter(c) {
+ } else if unicode.IsDigit(c) || unicode.IsLetter(c) || c == '.' || c == '-' || c == '_' {
id2 += string(c)
}
}