Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit c3c246b

Browse files
committed
fix: function name
1 parent c37f44b commit c3c246b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/backend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function collectionDepth<EF extends BaseField>(collection: Collection<EF>) {
296296
return depth;
297297
}
298298

299-
function i18nRulestring(ruleString: string, { defaultLocale, structure }: I18nInfo): string {
299+
function i18nRuleString(ruleString: string, { defaultLocale, structure }: I18nInfo): string {
300300
if (structure === I18N_STRUCTURE_MULTIPLE_FOLDERS) {
301301
return `${defaultLocale}\\/${ruleString}`;
302302
}
@@ -316,7 +316,7 @@ function collectionRegex<EF extends BaseField>(collection: Collection<EF>): RegE
316316
}
317317

318318
if (hasI18n(collection)) {
319-
ruleString = i18nRulestring(ruleString, getI18nInfo(collection));
319+
ruleString = i18nRuleString(ruleString, getI18nInfo(collection));
320320
}
321321

322322
return ruleString ? new RegExp(ruleString) : undefined;

0 commit comments

Comments
 (0)