From a2622aa5369716bc9226f26412f53394b1afa570 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 10 Jan 2026 04:36:15 +0100 Subject: [PATCH] Fixed slugify behavior. --- src/utils/slugify.js | 4 ++-- static | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/slugify.js b/src/utils/slugify.js index 3b00a34..08814b9 100755 --- a/src/utils/slugify.js +++ b/src/utils/slugify.js @@ -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, diff --git a/static b/static index 50a262d..c05345e 160000 --- a/static +++ b/static @@ -1 +1 @@ -Subproject commit 50a262da611d6435a0bf77662f47d0a9126615f0 +Subproject commit c05345e3c73cef25e2bb03931ffded6e7cfbe743