From eb2b18b8a0e64eded3731bae4204d2925dbef3e7 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 7 Oct 2023 11:05:58 +0200 Subject: infra(eslint): enable no-useless-escape eslint rule (#2434) --- scripts/generateLocales.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 81cf4331..36ca37c9 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -240,7 +240,7 @@ function updateLocaleFile(filePath: string): void { if (lstatSync(filePath).isFile()) { const pathParts = filePath .substring(pathLocales.length + 1, filePath.length - 3) - .split(/[\\\/]/); + .split(/[\\/]/); const locale = pathParts[0]; pathParts.splice(0, 1); updateLocaleFileHook(filePath, locale, pathParts); -- cgit v1.2.3