mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
removed handlebars dependency for emailer, using ANDREWBARS now
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
|
||||
str = str.replace(/^\s+|\s+$/g, ''); // trim
|
||||
str = str.toLowerCase();
|
||||
str = XRegExp.replace(str, invalidChars, '');
|
||||
str = XRegExp.replace(str, invalidChars, '-');
|
||||
str = str.replace(/\s+/g, '-') // collapse whitespace and replace by -
|
||||
str = str.replace(/-+/g, '-'); // collapse dashes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user