disallow underscore in slugs (#6133)

v1.18.x
Julian Lam 7 years ago committed by GitHub
parent f08627be17
commit 4fc3115f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -336,8 +336,8 @@
return String(str).replace(new RegExp('<(\\/)?(' + (pattern || '[^\\s>]+') + ')(\\s+[^<>]*?)?\\s*(\\/)?>', 'gi'), '');
},
invalidUnicodeChars: XRegExp('[^\\p{L}\\s\\d\\-_]', 'g'),
invalidLatinChars: /[^\w\s\d\-_]/g,
invalidUnicodeChars: XRegExp('([^\\p{L}\\s\\d-]|_)', 'g'),
invalidLatinChars: /([^\w\s\d-]|_)/g,
trimRegex: /^\s+|\s+$/g,
collapseWhitespace: /\s+/g,
collapseDash: /-+/g,

Loading…
Cancel
Save