summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-06-19 16:27:50 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-06-19 16:27:50 +0000
commit421376589e9ed5864b8e482ad9bd258be1065858 (patch)
tree0168d194597143fd8bf5cbf1dcd4710bc0630c32 /testdata
parentf60378e6b4536cdcfdd1bdcf133299a7a4793ae1 (diff)
downloadpcre2-421376589e9ed5864b8e482ad9bd258be1065858.tar.gz
Don't ignore {1}+ when it is applied to a parenthesized item.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1111 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput114
-rw-r--r--testdata/testoutput118
2 files changed, 32 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 7b6918a..4d9ec5a 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -6351,4 +6351,18 @@ ef) x/x,mark
acb
abc
+/(?:a|ab){1}+c/
+\= Expect no match
+ abc
+
+/(a|ab){1}+c/
+ abc
+
+/(a+){1}+a/
+\= Expect no match
+ aaaa
+
+/(?(DEFINE)(a|ab))(?1){1}+c/
+ abc
+
# End of testinput1
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index d9f8c3b..fffb8ec 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -10063,4 +10063,22 @@ MK: 2
0: a
MK: 2
+/(?:a|ab){1}+c/
+\= Expect no match
+ abc
+No match
+
+/(a|ab){1}+c/
+ abc
+No match
+
+/(a+){1}+a/
+\= Expect no match
+ aaaa
+No match
+
+/(?(DEFINE)(a|ab))(?1){1}+c/
+ abc
+No match
+
# End of testinput1