mirror of
https://github.com/tmedwards/tweego.git
synced 2025-07-05 06:00:26 -04:00
[Update] Revert hyphen→underscore slug change.
This commit is contained in:
parent
81d1d717d1
commit
1cfd23004f
1 changed files with 1 additions and 1 deletions
2
util.go
2
util.go
|
@ -96,7 +96,7 @@ func slugify(original string) string {
|
|||
// delete, C1 controls.
|
||||
illegalRe := regexp.MustCompile(`[\x00-\x20!-/:-@[-^\x60{-\x9f]+`)
|
||||
|
||||
return illegalRe.ReplaceAllLiteralString(original, "_")
|
||||
return illegalRe.ReplaceAllLiteralString(original, "-")
|
||||
}
|
||||
|
||||
func stringSliceContains(haystack []string, needle string) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue