mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Changed Normalization to support accents
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
21e8322f0e
commit
91f968a01e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user