X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/084544e4f7c9269b1445a9e5109fa641a3e1aaac..32974185d5e2b1bdc197b4f5dcab259b5de3c6b4:/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; } -})() +})(); + +