Using CommonJS for slugify.

This commit is contained in:
DebaucheryLibrarian 2026-01-09 01:51:45 +01:00
parent 0c9917fc27
commit b2305966ed
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const plainCharRegex = /[a-zA-Z0-9]/;
const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—-]/; const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—-]/;
const defaultSymbolRegex = /[@$€£#%^+=\\~]/; const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
export default function slugify(strings, delimiter = '-', { module.exports = function slugify(strings, delimiter = '-', {
limit = 1000, limit = 1000,
lower = true, lower = true,
encode = false, encode = false,