From c3c246b5f1791616d77aa8783770367bbafac933 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Thu, 12 Oct 2023 12:03:47 -0400 Subject: [PATCH] fix: function name --- packages/core/src/backend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/backend.ts b/packages/core/src/backend.ts index d14d01e4..05e9a3b5 100644 --- a/packages/core/src/backend.ts +++ b/packages/core/src/backend.ts @@ -296,7 +296,7 @@ function collectionDepth(collection: Collection) { return depth; } -function i18nRulestring(ruleString: string, { defaultLocale, structure }: I18nInfo): string { +function i18nRuleString(ruleString: string, { defaultLocale, structure }: I18nInfo): string { if (structure === I18N_STRUCTURE_MULTIPLE_FOLDERS) { return `${defaultLocale}\\/${ruleString}`; } @@ -316,7 +316,7 @@ function collectionRegex(collection: Collection): RegE } if (hasI18n(collection)) { - ruleString = i18nRulestring(ruleString, getI18nInfo(collection)); + ruleString = i18nRuleString(ruleString, getI18nInfo(collection)); } return ruleString ? new RegExp(ruleString) : undefined;