X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f499ee9347f539c36f3846fdc41020f2320bae77..c52436a7e25876ee3509df2467c2a9ef33303436:/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; } })();