Fix bug in experimental conversion code.
This commit is contained in:
parent
daf71631df
commit
1dc6dc7cc7
@ -284,7 +284,7 @@ while (plength > 0)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (c < 256 && strchr("\\{}?*+[]()|.^$", c) != NULL)
|
||||
if (c < 256 && strchr("\\{}?*+[]()|", c) != NULL)
|
||||
{
|
||||
PUTCHARS(STR_BACKSLASH);
|
||||
}
|
||||
|
4
testdata/testinput24
vendored
4
testdata/testinput24
vendored
@ -257,6 +257,10 @@
|
||||
\= Expect no match
|
||||
a1b
|
||||
|
||||
/how.to/
|
||||
|
||||
/^how to/
|
||||
|
||||
#pattern convert=unset
|
||||
|
||||
/abc/
|
||||
|
6
testdata/testoutput24
vendored
6
testdata/testoutput24
vendored
@ -411,6 +411,12 @@ a*b\+c+[def]\(ab\)(cd)
|
||||
a1b
|
||||
No match
|
||||
|
||||
/how.to/
|
||||
how.to
|
||||
|
||||
/^how to/
|
||||
^how to
|
||||
|
||||
#pattern convert=unset
|
||||
|
||||
/abc/
|
||||
|
Loading…
Reference in New Issue
Block a user