Skip to content

Commit 0bcecf8

Browse files
committed
chore: remove unnecessary escape for linter
1 parent 5dadfeb commit 0bcecf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/helpers/matchers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const stripLookahead = (regex: string) => {
2525
}
2626

2727
// The Go regexp lib has alternative syntax for named capture groups
28-
export const transformCaptureGroups = (regex: string) => regex.replace(/\(\?\<\w+\>/, '(')
28+
export const transformCaptureGroups = (regex: string) => regex.replace(/\(\?<\w+>/, '(')
2929

3030
const LOCALIZED_REGEX_PREFIX = '(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))'
3131
const OPTIONAL_REGEX_PREFIX = '(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))?'

0 commit comments

Comments
 (0)