fix: normalize `/index` to `/`

closes #5165
pull/5158/head
Divyansh Singh 2 weeks ago
parent 1278c59f51
commit 856858d26a

@ -30,7 +30,7 @@ const UnpackStackView = Symbol('stack-view:unpack')
const HASH_WITHOUT_FRAGMENT_RE = /#.*?(?=:~:|$)/
const HASH_OR_QUERY_RE = /[?#].*$/
const INDEX_OR_EXT_RE = /(?:(^|\/)index)?\.(?:md|html)$/
const INDEX_OR_EXT_RE = /(?:(^|\/)index)?(?:\.(?:md|html))?$/
export const inBrowser = typeof document !== 'undefined'

Loading…
Cancel
Save