Fixed slugify behavior.

This commit is contained in:
DebaucheryLibrarian 2026-01-10 04:36:15 +01:00
parent 602765bfbb
commit a2622aa536
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ const accentMap = {
};
const plainCharRegex = /[a-zA-Z0-9]/;
const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—]/;
const defaultPunctuationRegex = /[.,?!:;&'"“”…()[\]{}<>/*—]/;
const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
export default function slugify(strings, delimiter = '-', {
@ -48,7 +48,7 @@ export default function slugify(strings, delimiter = '-', {
lower = true,
encode = false,
accents: keepAccents = false,
punctuation: keepPunctuation = false,
punctuation: keepPunctuation = 'split',
punctuationRegex = defaultPunctuationRegex,
symbols: keepSymbols = false,
symbolRegex = defaultSymbolRegex,

2
static

@ -1 +1 @@
Subproject commit 50a262da611d6435a0bf77662f47d0a9126615f0
Subproject commit c05345e3c73cef25e2bb03931ffded6e7cfbe743