diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-06-26 16:13:28 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-06-26 16:13:28 +0000 |
commit | 427e9b2fffc46d6b49a31df34c8b120bffc2ea60 (patch) | |
tree | 506ca2d3a02d894f069f98dc58c226ebb488b079 /testdata | |
parent | 29d1e2521ac05f63981a6d956ac3a6d49407fde6 (diff) | |
download | pcre2-427e9b2fffc46d6b49a31df34c8b120bffc2ea60.tar.gz |
Fix partial matching bug in pcre2_dfa_match().
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1123 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput6 | 22 | ||||
-rw-r--r-- | testdata/testoutput6 | 36 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testdata/testinput6 b/testdata/testinput6 index 403e3fa..cc3ebd0 100644 --- a/testdata/testinput6 +++ b/testdata/testinput6 @@ -4972,4 +4972,26 @@ \= Expect no match 0 +/(?<=pqr)abc(?=xyz)/ + 123pqrabcxy\=ps,allusedtext + 123pqrabcxyz\=ps,allusedtext + +/(?>a+b)/ + aaaa\=ps + aaaab\=ps + +/(abc)(?1)/ + abca\=ps + abcabc\=ps + +/(?(?=abc).*|Z)/ + ab\=ps + abcxyz\=ps + +/(abc)++x/ + abcab\=ps + abc\=ps + ab\=ps + abcx + # End of testinput6 diff --git a/testdata/testoutput6 b/testdata/testoutput6 index 6a975dd..61cbfe2 100644 --- a/testdata/testoutput6 +++ b/testdata/testoutput6 @@ -7809,4 +7809,40 @@ No match 0 No match +/(?<=pqr)abc(?=xyz)/ + 123pqrabcxy\=ps,allusedtext +Partial match: pqrabcxy + <<< + 123pqrabcxyz\=ps,allusedtext + 0: pqrabcxyz + <<< >>> + +/(?>a+b)/ + aaaa\=ps +Partial match: aaaa + aaaab\=ps + 0: aaaab + +/(abc)(?1)/ + abca\=ps +Partial match: abca + abcabc\=ps + 0: abcabc + +/(?(?=abc).*|Z)/ + ab\=ps +Partial match: ab + abcxyz\=ps + 0: abcxyz + +/(abc)++x/ + abcab\=ps +Partial match: abcab + abc\=ps +Partial match: abc + ab\=ps +Partial match: ab + abcx + 0: abcx + # End of testinput6 |