From 2387cf4f876b1f0df9334eab997b53ebfc6fd3d7 Mon Sep 17 00:00:00 2001 From: matthieu Date: Wed, 9 Aug 2023 11:10:26 +0200 Subject: [PATCH] accept number to route names --- src/core/parser/i18n.modifiers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/parser/i18n.modifiers.ts b/src/core/parser/i18n.modifiers.ts index 57bccf9..486f95a 100644 --- a/src/core/parser/i18n.modifiers.ts +++ b/src/core/parser/i18n.modifiers.ts @@ -26,7 +26,7 @@ export function modifyRoutePrefixDefaultIfI18n(route: NuxtPage) { .join('|'); if (i18nOptions?.strategy === 'prefix_and_default') { const routeDefaultRegXp = new RegExp( - `([a-zA-Z-]+)${separator}(${i18LocalesRecognizer})${separator}default`, + `([a-zA-Z0-9-]+)${separator}(${i18LocalesRecognizer})${separator}default`, 'g' ); const match = routeDefaultRegXp.exec(route.name);