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 5dadfeb commit 0bcecf8Copy full SHA for 0bcecf8
packages/runtime/src/helpers/matchers.ts
@@ -25,7 +25,7 @@ export const stripLookahead = (regex: string) => {
25
}
26
27
// The Go regexp lib has alternative syntax for named capture groups
28
-export const transformCaptureGroups = (regex: string) => regex.replace(/\(\?\<\w+\>/, '(')
+export const transformCaptureGroups = (regex: string) => regex.replace(/\(\?<\w+>/, '(')
29
30
const LOCALIZED_REGEX_PREFIX = '(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))'
31
const OPTIONAL_REGEX_PREFIX = '(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))?'
0 commit comments