X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f499ee9347f539c36f3846fdc41020f2320bae77..32974185d5e2b1bdc197b4f5dcab259b5de3c6b4:/platforma/static/js/slugify.js diff --git a/platforma/static/js/slugify.js b/platforma/static/js/slugify.js index 8be7758a..9e17ba70 100644 --- a/platforma/static/js/slugify.js +++ b/platforma/static/js/slugify.js @@ -110,7 +110,7 @@ } return downcoded; } - + slugify = function(s) { s = downcode(s); // if downcode doesn't hit, the char will be stripped here @@ -118,7 +118,7 @@ s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces s = s.replace(/[-\s]+/g, '-'); // convert spaces to hyphens s = s.toLowerCase(); // convert to lowercase - + return s; } })();