|
@@ -7,9 +7,9 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
function slugify(s, num_chars) {
|
|
|
- s = s.replace(/[^-\.\+\w\s]/g, '');
|
|
|
+ s = s.replace(/[^\-\.\w\s]/g, '');
|
|
|
s = s.replace(/^\s+|\s+$/g, '');
|
|
|
- s = s.replace(/[-\s]+/g, '-');
|
|
|
+ s = s.replace(/[\-\.\s]+/g, '-');
|
|
|
s = s.toLowerCase();
|
|
|
return s.substring(0, num_chars);
|
|
|
}
|