Skip to content

Commit 856858d

Browse files
committed
fix: normalize /index to /
closes #5165
1 parent 1278c59 commit 856858d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const UnpackStackView = Symbol('stack-view:unpack')
3030

3131
const HASH_WITHOUT_FRAGMENT_RE = /#.*?(?=:~:|$)/
3232
const HASH_OR_QUERY_RE = /[?#].*$/
33-
const INDEX_OR_EXT_RE = /(?:(^|\/)index)?\.(?:md|html)$/
33+
const INDEX_OR_EXT_RE = /(?:(^|\/)index)?(?:\.(?:md|html))?$/
3434

3535
export const inBrowser = typeof document !== 'undefined'
3636

0 commit comments

Comments
 (0)