summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-11-27 16:00:58 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-11-27 16:00:58 +0000
commite4bf00e96cbc87c704a347cf7c7b077203f94151 (patch)
tree0bdd8c45a55967231c04f09884fa29eaadeb0763 /testdata
parent46d95c641785318f9cd9f0de93b97bef41341806 (diff)
downloadpcre2-e4bf00e96cbc87c704a347cf7c7b077203f94151.tar.gz
Fix non-recognition of anchoring when preceded by (*MARK) etc.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1048 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput26
-rw-r--r--testdata/testoutput218
2 files changed, 24 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index c9a8b9f..d471284 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -5553,4 +5553,10 @@ a)"xI
/foobar/g
the foobar thing foobar again\=copy_matched_subject
+/(*:XX)^abc/I
+
+/(*COMMIT:XX)^abc/I
+
+/(*ACCEPT:XX)^abc/I
+
# End of testinput2
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 833ccbd..47eabf3 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -16875,6 +16875,24 @@ Failed: error 128 at offset 14: assertion expected after (?( or (?(?C)
0: foobar
0: foobar
+/(*:XX)^abc/I
+Capturing subpattern count = 0
+Compile options: <none>
+Overall options: anchored
+First code unit = 'a'
+Subject length lower bound = 3
+
+/(*COMMIT:XX)^abc/I
+Capturing subpattern count = 0
+Compile options: <none>
+Overall options: anchored
+First code unit = 'a'
+Subject length lower bound = 3
+
+/(*ACCEPT:XX)^abc/I
+Capturing subpattern count = 0
+Subject length lower bound = 0
+
# End of testinput2
Error -70: PCRE2_ERROR_BADDATA (unknown error number)
Error -62: bad serialized data