1
0
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:
Jocelyn Badgley (Twipped)
2020-04-07 10:32:23 -07:00
parent dbce40d195
commit 98b9fd7934
3 changed files with 7 additions and 4 deletions

View File

@@ -3,8 +3,7 @@ const path = require('path');
const { without } = require('lodash');
const { resolve, isCleanUrl, TYPE, ENGINE } = require('./resolve');
const Page = require('./page');
const slugs = require('slugify');
const slugify = (s) => slugs(s, { remove: /[*+~.,()'"!?:@/\\]/g }).toLowerCase();
const slugify = require('./lib/slugify');
const pkg = require(resolve('package.json'));
const postmatch = /(\d{4}-\d\d-\d\d)\.\d{4}\.(\w+)/;