mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
5 lines
182 B
JavaScript
5 lines
182 B
JavaScript
module.exports = exports = function slugify (s) {
|
|
const result = s.trim().replace(/[^\p{L}\p{N}]+/ug, '-').replace(/^-+/, '').replace(/-+$/, '').toLowerCase();
|
|
return result;
|
|
};
|