diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/autoport/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go index 1d507802c9..6e5c93cb54 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -147,6 +147,7 @@ func sanitize(inp string) string { result := strings.ToLower(inp) result = strings.Replace(result, " ", "_", -1) result = strings.Replace(result, ",", "_", -1) + result = strings.Replace(result, "-", "_", -1) for strings.HasSuffix(result, ".") { result = result[0 : len(result)-1] } |