Skip to content

Commit

Permalink
fix: nested dynamic routes generates wrong types #102
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Jul 5, 2023
1 parent 230c912 commit 6b50621
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion playground/src/pages/admin/[id].vue

This file was deleted.

Empty file.
1 change: 1 addition & 0 deletions playground/src/pages/index/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<template><span>H1</span></template>
2 changes: 1 addition & 1 deletion src/core/parser/params/replaceParams.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const routeParamExtractRegxp = /(:(\w+)(\(.*[^(]\)[*+]?)?(\?)?)+/g;
const routeParamExtractRegxp = /(:(\w+)(\(\.[^(]\)[*+]?)?(\?)?)+/g;

type ExtractedParam = { name: string; optional: boolean; catchAll: boolean };

Expand Down

1 comment on commit 6b50621

@vercel
Copy link

@vercel vercel bot commented on 6b50621 Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.