Node.js based forum software built for the modern web
tweaking slugify code to not remove numbers
Julian Lamc19a51e1b637
diff --git a/public/src/utils.js b/public/src/utils.jsindex cfc9f5208f..2fa9d047fa 100644--- a/public/src/utils.js+++ b/public/src/utils.js@@ -93,7 +93,7 @@//http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/slugify: function(str) {- var invalidChars = XRegExp('[^\\p{L} -]', 'g');+ var invalidChars = XRegExp('[^\\p{L} 0-9\-]', 'g');str = str.replace(/^\s+|\s+$/g, ''); // trimstr = str.toLowerCase();