mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Libraryify slugify
This commit is contained in:
5
build/lib/slugify.js
Normal file
5
build/lib/slugify.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const slugs = require('slugify');
|
||||
|
||||
module.exports = exports = function slugify (s) {
|
||||
return slugs(s, { remove: /[*+~.,()'"!?:@/\\]/g }).toLowerCase();
|
||||
};
|
||||
Reference in New Issue
Block a user