From e07c848da77f12a0822a7f5268ecc316c508582b Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Wed, 8 Jan 2014 16:30:27 -0500 Subject: [PATCH] closes #737 --- public/src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/utils.js b/public/src/utils.js index 67a5aed47d..8f6e51d59d 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -102,6 +102,7 @@ str = XRegExp.replace(str, invalidChars, '-'); str = str.replace(/\s+/g, '-') // collapse whitespace and replace by - str = str.replace(/-+/g, '-'); // collapse dashes + str = str.replace(/-$/g, ''); return str; },