Fix bug in experimental conversion code.

This commit is contained in:
ph10 2017-05-09 10:44:50 +00:00
parent daf71631df
commit 1dc6dc7cc7
3 changed files with 11 additions and 1 deletions

View File

@ -284,7 +284,7 @@ while (plength > 0)
break; break;
default: default:
if (c < 256 && strchr("\\{}?*+[]()|.^$", c) != NULL) if (c < 256 && strchr("\\{}?*+[]()|", c) != NULL)
{ {
PUTCHARS(STR_BACKSLASH); PUTCHARS(STR_BACKSLASH);
} }

View File

@ -257,6 +257,10 @@
\= Expect no match \= Expect no match
a1b a1b
/how.to/
/^how to/
#pattern convert=unset #pattern convert=unset
/abc/ /abc/

View File

@ -411,6 +411,12 @@ a*b\+c+[def]\(ab\)(cd)
a1b a1b
No match No match
/how.to/
how.to
/^how to/
^how to
#pattern convert=unset #pattern convert=unset
/abc/ /abc/