[Update] Revert hyphen→underscore slug change.

This commit is contained in:
Thomas M. Edwards 2020-02-28 08:06:52 -06:00
parent 81d1d717d1
commit 1cfd23004f

View file

@ -96,7 +96,7 @@ func slugify(original string) string {
// delete, C1 controls. // delete, C1 controls.
illegalRe := regexp.MustCompile(`[\x00-\x20!-/:-@[-^\x60{-\x9f]+`) illegalRe := regexp.MustCompile(`[\x00-\x20!-/:-@[-^\x60{-\x9f]+`)
return illegalRe.ReplaceAllLiteralString(original, "_") return illegalRe.ReplaceAllLiteralString(original, "-")
} }
func stringSliceContains(haystack []string, needle string) bool { func stringSliceContains(haystack []string, needle string) bool {