Skip to content

Commit 19a3975

Browse files
committed
stop replacing capturing group syntax
1 parent 5bb6d33 commit 19a3975

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

func.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,6 @@ func compileRegexp(re, flags string) (*regexp.Regexp, error) {
20782078
}) >= 0 {
20792079
return nil, fmt.Errorf("unsupported regular expression flag: %q", flags)
20802080
}
2081-
re = strings.ReplaceAll(re, "(?<", "(?P<")
20822081
if strings.ContainsRune(flags, 'i') {
20832082
re = "(?i)" + re
20842083
}

0 commit comments

Comments
 (0)