X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/084544e4f7c9269b1445a9e5109fa641a3e1aaac..00a90d6175599e055f5a84697c8388d81ac1b007:/platforma/static/js/slugify.js diff --git a/platforma/static/js/slugify.js b/platforma/static/js/slugify.js index b000b648..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,9 @@ 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; } -})() +})(); + +