diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-13 16:00:48 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-13 16:00:48 +0000 |
commit | a2d87770aebc2ba13d6943ff1fcfae0fc26a3134 (patch) | |
tree | 86184f9e683f46bb8da21af6c1592b69ade2045a /testdata | |
parent | c53d4af2465bf11a8aefceb67bf7f7ae19b08ac5 (diff) | |
download | pcre-a2d87770aebc2ba13d6943ff1fcfae0fc26a3134.tar.gz |
Fix bad conditional recursion test bug when a group with name starting "R"
exists.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1667 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 4 | ||||
-rw-r--r-- | testdata/testoutput2 | 28 |
2 files changed, 32 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index 75e402e..38346ef 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4243,4 +4243,8 @@ backtracking verbs. --/ /\N(?(?C)0?!.)*/ +/(?<RA>abc)(?(R)xyz)/BZ + +/(?<R>abc)(?(R)xyz)/BZ + /-- End of testinput2 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 5e88d1a..216bff8 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -14670,4 +14670,32 @@ No match /\N(?(?C)0?!.)*/ Failed: assertion expected after (?( or (?(?C) at offset 4 +/(?<RA>abc)(?(R)xyz)/BZ +------------------------------------------------------------------ + Bra + CBra 1 + abc + Ket + Cond + Cond recurse any + xyz + Ket + Ket + End +------------------------------------------------------------------ + +/(?<R>abc)(?(R)xyz)/BZ +------------------------------------------------------------------ + Bra + CBra 1 + abc + Ket + Cond + 1 Cond ref + xyz + Ket + Ket + End +------------------------------------------------------------------ + /-- End of testinput2 --/ |