1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Remove slugify

This commit is contained in:
Jocelyn Badgley (Twipped)
2022-10-23 11:02:05 -07:00
parent edac46eff8
commit 1fe166c183
3 changed files with 0 additions and 16 deletions

View File

@@ -1,5 +1,3 @@
const slugs = require('slugify');
module.exports = exports = function slugify (s) {
const result = s.trim().replace(/[^\p{L}\p{N}]+/ug, '-').replace(/^-+/, '').replace(/-+$/, '').toLowerCase();
return result;