mirror of
https://github.com/tcgdex/compiler.git
synced 2025-07-05 21:19:17 +00:00
Changed Normalization to support accents
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -2,7 +2,7 @@ import glob from 'glob'
|
|||||||
import fetch from 'node-fetch'
|
import fetch from 'node-fetch'
|
||||||
|
|
||||||
export function urlize(str: string): string {
|
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 {
|
interface fileCacheInterface {
|
||||||
|
Reference in New Issue
Block a user