removed handlebars dependency for emailer, using ANDREWBARS now

This commit is contained in:
Julian Lam
2014-01-04 18:03:54 -05:00
parent 5c048ac20a
commit b6fdc5595d
9 changed files with 21 additions and 88 deletions

View File

@@ -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