Skip to content

Commit 07549e1

Browse files
committed
chore: include forward slash
1 parent babe5bf commit 07549e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/pages/[...package].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function handleClick(event: MouseEvent) {
482482
const href = target.getAttribute('href')
483483
if (!href) return
484484
485-
const match = href.match(/^(?:https?:\/\/)?(?:www\.)?npmjs\.(?:com|org)\/(.+)/)
485+
const match = href.match(/^(?:https?:\/\/)?(?:www\.)?npmjs\.(?:com|org)(\/.+)$/)
486486
if (!match || !match[1]) return
487487
488488
const route = router.resolve(match[1])

0 commit comments

Comments
 (0)