v1.18.x
Baris Soner Usakli 11 years ago
parent 6b8f7dba4f
commit e07c848da7

@ -102,6 +102,7 @@
str = XRegExp.replace(str, invalidChars, '-'); str = XRegExp.replace(str, invalidChars, '-');
str = str.replace(/\s+/g, '-') // collapse whitespace and replace by - str = str.replace(/\s+/g, '-') // collapse whitespace and replace by -
str = str.replace(/-+/g, '-'); // collapse dashes str = str.replace(/-+/g, '-'); // collapse dashes
str = str.replace(/-$/g, '');
return str; return str;
}, },

Loading…
Cancel
Save