thelounge/client/js/libs/handlebars/slugify.js
2017-04-16 12:31:32 +03:00

5 lines
106 B
JavaScript

"use strict";
module.exports = function(orig) {
return orig.toLowerCase().replace(/[^a-z0-9]/, "-");
};