diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-18 15:10:09 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-18 15:10:09 +0000 |
commit | d6d45d15235fc6f010cfb193db8fb672a152e41c (patch) | |
tree | 160fa6cbfeb5360310a9818fde013ecdf00ad40e /testdata | |
parent | bad0d0347aa4ab37d2b3e906193725d68a5d98bf (diff) | |
download | pcre-d6d45d15235fc6f010cfb193db8fb672a152e41c.tar.gz |
Fix optimization bugs for patterns starting with lookaheads.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1669 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput1 | 6 | ||||
-rw-r--r-- | testdata/testinput2 | 2 | ||||
-rw-r--r-- | testdata/testinput6 | 6 | ||||
-rw-r--r-- | testdata/testoutput1 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 9 | ||||
-rw-r--r-- | testdata/testoutput6 | 8 |
6 files changed, 38 insertions, 1 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1 index 8379ce0..93abab3 100644 --- a/testdata/testinput1 +++ b/testdata/testinput1 @@ -5733,4 +5733,10 @@ AbcdCBefgBhiBqz "(?|(\k'Pm')|(?'Pm'))" abcd +/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[,;:])(?=.{8,16})(?!.*[\s])/ + \ Fred:099 + +/(?=.*X)X$/ + \ X + /-- End of testinput1 --/ diff --git a/testdata/testinput2 b/testdata/testinput2 index 38346ef..08c6f39 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4247,4 +4247,6 @@ backtracking verbs. --/ /(?<R>abc)(?(R)xyz)/BZ +/(?=.*[A-Z])/I + /-- End of testinput2 --/ diff --git a/testdata/testinput6 b/testdata/testinput6 index a178d3d..22ed1e6 100644 --- a/testdata/testinput6 +++ b/testdata/testinput6 @@ -1562,4 +1562,10 @@ \x{389} \x{20ac} +/(?=.*b)\pL/ + 11bb + +/(?(?=.*b)(?=.*b)\pL|.*c)/ + 11bb + /-- End of testinput6 --/ diff --git a/testdata/testoutput1 b/testdata/testoutput1 index e852ab9..a2b3cff 100644 --- a/testdata/testoutput1 +++ b/testdata/testoutput1 @@ -9434,4 +9434,12 @@ No match 0: 1: +/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[,;:])(?=.{8,16})(?!.*[\s])/ + \ Fred:099 + 0: + +/(?=.*X)X$/ + \ X + 0: X + /-- End of testinput1 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 216bff8..811bbef 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -9380,7 +9380,7 @@ No need char /(?(?=.*b).*b|^d)/I Capturing subpattern count = 0 No options -First char at start or follows newline +No first char No need char /xyz/C @@ -14698,4 +14698,11 @@ Failed: assertion expected after (?( or (?(?C) at offset 4 End ------------------------------------------------------------------ +/(?=.*[A-Z])/I +Capturing subpattern count = 0 +May match empty string +No options +No first char +No need char + /-- End of testinput2 --/ diff --git a/testdata/testoutput6 b/testdata/testoutput6 index b64dc0d..422d383 100644 --- a/testdata/testoutput6 +++ b/testdata/testoutput6 @@ -2573,4 +2573,12 @@ No match \x{20ac} No match +/(?=.*b)\pL/ + 11bb + 0: b + +/(?(?=.*b)(?=.*b)\pL|.*c)/ + 11bb + 0: b + /-- End of testinput6 --/ |