Add more chars to be removed on slugify

This commit is contained in:
Jared Schoeny 2025-11-28 20:32:24 -10:00
parent 970491cb85
commit a113d8fa98

View File

@ -22,7 +22,7 @@ export function slugify(text: string) {
return text
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "") // strip combining diacritics
.replace(/[.,!?'"\*\(\)]/g, "") // remove common punctuation
.replace(/[.,!?'"“”‘’\*\(\)]/g, "") // remove common punctuation
.replace(/ß/g, "ss")
.replace(/æ/g, "ae")
.replace(/œ/g, "oe")