Merge branch 'master' into home_vue

pull/34/head
Akhil Gupta 4 years ago
commit 4e11a570b5

@ -350,7 +350,7 @@ func cleanAttributes(a []parser.Attribute, allowed []string) []parser.Attribute
// A list of characters we consider separators in normal strings and replace with our canonical separator - rather than removing. // A list of characters we consider separators in normal strings and replace with our canonical separator - rather than removing.
var ( var (
separators = regexp.MustCompile(`[ &_=+:]`) separators = regexp.MustCompile(`[!&_=+:]`)
dashes = regexp.MustCompile(`[\-]+`) dashes = regexp.MustCompile(`[\-]+`)
) )
@ -366,7 +366,7 @@ func cleanString(s string, r *regexp.Regexp) string {
s = Accents(s) s = Accents(s)
// Replace certain joining characters with a dash // Replace certain joining characters with a dash
//s = separators.ReplaceAllString(s, "-") s = separators.ReplaceAllString(s, "-")
// Remove all other unrecognised characters - NB we do allow any printable characters // Remove all other unrecognised characters - NB we do allow any printable characters
//s = r.ReplaceAllString(s, "") //s = r.ReplaceAllString(s, "")

Loading…
Cancel
Save