Node.js based forum software built for the modern web
closes #885
Baris Soner Usakli31a57cf0dd19
diff --git a/public/src/utils.js b/public/src/utils.jsindex e7916ef5f6..988253f3c1 100644--- a/public/src/utils.js+++ b/public/src/utils.js@@ -106,6 +106,7 @@collapseWhitespace : /\s+/g,collapseDash : /-+/g,trimTrailingDash : /-$/g,+ trimLeadingDash : /^-/g,isLatin : /^[\w]+$/,//http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/@@ -120,6 +121,7 @@str = str.replace(utils.collapseWhitespace, '-')str = str.replace(utils.collapseDash, '-');str = str.replace(utils.trimTrailingDash, '');+ str = str.replace(utils.trimLeadingDash, '');return str;},