Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 602765bfbb 0.42.9 2026-01-10 03:00:34 +01:00
DebaucheryLibrarian e32dd55220 Fixed slugify not handling slugs as input. 2026-01-10 03:00:31 +01:00
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.42.8", "version": "0.42.9",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.42.8", "version": "0.42.9",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -87,7 +87,7 @@
"overrides": { "overrides": {
"vite": "$vite" "vite": "$vite"
}, },
"version": "0.42.8", "version": "0.42.9",
"imports": { "imports": {
"#/*": "./*.js" "#/*": "./*.js"
} }

View File

@ -40,7 +40,7 @@ const accentMap = {
}; };
const plainCharRegex = /[a-zA-Z0-9]/; const plainCharRegex = /[a-zA-Z0-9]/;
const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—-]/; const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—]/;
const defaultSymbolRegex = /[@$€£#%^+=\\~]/; const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
export default function slugify(strings, delimiter = '-', { export default function slugify(strings, delimiter = '-', {
@ -64,6 +64,7 @@ export default function slugify(strings, delimiter = '-', {
: string; : string;
const normalized = casedString const normalized = casedString
.replace(/[_-]+/g, ' ')
.split('') .split('')
.map((char) => { .map((char) => {
if (char === ' ') { if (char === ' ') {