aboutsummaryrefslogtreecommitdiff
path: root/scripts/generateLocales.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-07 11:05:58 +0200
committerGitHub <[email protected]>2023-10-07 09:05:58 +0000
commiteb2b18b8a0e64eded3731bae4204d2925dbef3e7 (patch)
tree0ace6e551d0a75fae07e6acef448b48691589cdc /scripts/generateLocales.ts
parentc80c035333e3c832c46dc7dcac5c86a289829e0d (diff)
downloadfaker-eb2b18b8a0e64eded3731bae4204d2925dbef3e7.tar.xz
faker-eb2b18b8a0e64eded3731bae4204d2925dbef3e7.zip
infra(eslint): enable no-useless-escape eslint rule (#2434)
Diffstat (limited to 'scripts/generateLocales.ts')
-rw-r--r--scripts/generateLocales.ts2
1 files changed, 1 insertions, 1 deletions
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);