mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-08-22 08:34:13 -05:00
Add more chars to be removed on slugify
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user