diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-27 17:32:22 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-27 17:32:22 +0000 |
commit | 79880968a01921b9884edf78c1bd6144ec0d01ad (patch) | |
tree | b56b3ce4f88a104b7c75ce7abe03c6539c1daacb /testdata | |
parent | 50ff7a0c78767ca9035827392c9203911a18d325 (diff) | |
download | pcre-79880968a01921b9884edf78c1bd6144ec0d01ad.tar.gz |
Fix back references with zero minimum repeat when the reference is unset.
git-svn-id: svn://vcs.exim.org/pcre/code/branches/pcre16@832 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput1 | 6 | ||||
-rw-r--r-- | testdata/testoutput1 | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1 index 9bc9b51..e0529e3 100644 --- a/testdata/testinput1 +++ b/testdata/testinput1 @@ -5244,4 +5244,10 @@ name were given. ---/ ** Failers abpq +/(another)?(\1?)test/ + hello world test + +/(another)?(\1+)test/ + hello world test + /-- End of testinput1 --/ diff --git a/testdata/testoutput1 b/testdata/testoutput1 index 49b4a18..4893e69 100644 --- a/testdata/testoutput1 +++ b/testdata/testoutput1 @@ -8705,4 +8705,14 @@ No match abpq No match +/(another)?(\1?)test/ + hello world test + 0: test + 1: <unset> + 2: + +/(another)?(\1+)test/ + hello world test +No match + /-- End of testinput1 --/ |