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