From 91f968a01eebe8dd4688a67ba3ac0c62e6a198d5 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 3 May 2021 00:53:58 +0200 Subject: [PATCH] Changed Normalization to support accents Signed-off-by: Avior --- utils/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/util.ts b/utils/util.ts index ed7182c..c6c666f 100644 --- a/utils/util.ts +++ b/utils/util.ts @@ -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 {