Skip to content

Commit

Permalink
fix group matching
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Jul 20, 2023
1 parent 6ac359c commit 14542b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function entryNameToGroupName(entryName: string) {
let groupName = entryName
.slice(0, entryName.lastIndexOf('/'))
.replace(/\/@[^/]+/g, '')
.replace(/\/\([^/]+\)(\/|$)/g, '$2')
// Remove the group with lookahead to make sure it's not interception route
.replace(/\/\([^/]+\)(?=(\/|$))/g, '')

// Interception routes
groupName = groupName
Expand Down

0 comments on commit 14542b0

Please sign in to comment.