We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent babe5bf commit 07549e1Copy full SHA for 07549e1
1 file changed
app/pages/[...package].vue
@@ -482,7 +482,7 @@ function handleClick(event: MouseEvent) {
482
const href = target.getAttribute('href')
483
if (!href) return
484
485
- const match = href.match(/^(?:https?:\/\/)?(?:www\.)?npmjs\.(?:com|org)\/(.+)/)
+ const match = href.match(/^(?:https?:\/\/)?(?:www\.)?npmjs\.(?:com|org)(\/.+)$/)
486
if (!match || !match[1]) return
487
488
const route = router.resolve(match[1])
0 commit comments