mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-09 12:47:06 +02:00
revert _ sluggify change
This commit is contained in:
committed by
GitHub
parent
9ea1f25814
commit
5ff5b6c699
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user