feat: export normalize function from shared chunk

closes #4401
pull/4502/head
Divyansh Singh 8 months ago
parent 096bba19fb
commit 616f63f5f0

@ -62,7 +62,7 @@ export function isActive(
return true return true
} }
function normalize(path: string): string { export function normalize(path: string): string {
return decodeURI(path) return decodeURI(path)
.replace(HASH_OR_QUERY_RE, '') .replace(HASH_OR_QUERY_RE, '')
.replace(INDEX_OR_EXT_RE, '$1') .replace(INDEX_OR_EXT_RE, '$1')

Loading…
Cancel
Save