Changed Normalization to support accents

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-05-03 00:53:58 +02:00
parent 21e8322f0e
commit 91f968a01e
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6

View File

@ -2,7 +2,7 @@ import glob from 'glob'
import fetch from 'node-fetch'
export function urlize(str: string): string {
return str.replace('?', '%3F').normalize('NFD').replace(/["'\u0300-\u036f]/g, "")
return str.replace('?', '%3F').normalize('NFC').replace(/["'\u0300-\u036f]/g, "")
}
interface fileCacheInterface {