6 lines
156 B
JavaScript
Raw Normal View History

2020-04-07 10:32:23 -07:00
const slugs = require('slugify');
module.exports = exports = function slugify (s) {
return slugs(s, { remove: /[*+~.,()'"!?:@/\\]/g }).toLowerCase();
};