From 616f63f5f08a57347f2800e2d147d5bcd1cd072d Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:17:27 +0530 Subject: [PATCH] feat: export normalize function from shared chunk closes #4401 --- src/shared/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/shared.ts b/src/shared/shared.ts index 051c5d09..3d2cc7a5 100644 --- a/src/shared/shared.ts +++ b/src/shared/shared.ts @@ -62,7 +62,7 @@ export function isActive( return true } -function normalize(path: string): string { +export function normalize(path: string): string { return decodeURI(path) .replace(HASH_OR_QUERY_RE, '') .replace(INDEX_OR_EXT_RE, '$1')