diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-03-03 16:08:23 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-03-03 16:08:23 +0000 |
commit | bb83db6447434ffc92fdee4feb08d99b45e00f9d (patch) | |
tree | c287052564082140b69d9758f0729dc296423c68 /testdata | |
parent | ccb6ec2e2cbd01c49832a4ba80f0ec4425846138 (diff) | |
download | pcre-bb83db6447434ffc92fdee4feb08d99b45e00f9d.tar.gz |
Fix bug with (?(?=.*b)b|^) thinking it must match at start of line; also fix
bug causing a crash when auto-callout is used with a conditional assertion.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@381 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput1 | 6 | ||||
-rw-r--r-- | testdata/testinput2 | 8 | ||||
-rw-r--r-- | testdata/testoutput1 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 52 |
4 files changed, 74 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1 index dc01c0c..ecfd365 100644 --- a/testdata/testinput1 +++ b/testdata/testinput1 @@ -4055,4 +4055,10 @@ adc abc +/(?(?=b).*b|^d)/ + abc + +/(?(?=.*b).*b|^d)/ + abc + / End of testinput1 / diff --git a/testdata/testinput2 b/testdata/testinput2 index 2b64546..2f80926 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -2726,4 +2726,12 @@ a random value. /Ix /(abc|pqr|123){0}[xyz]/SI +/(?(?=.*b)b|^)/CI + adc + abc + +/(?(?=b).*b|^d)/I + +/(?(?=.*b).*b|^d)/I + / End of testinput2 / diff --git a/testdata/testoutput1 b/testdata/testoutput1 index 0e26007..83ef39c 100644 --- a/testdata/testoutput1 +++ b/testdata/testoutput1 @@ -6633,4 +6633,12 @@ No match abc 0: b +/(?(?=b).*b|^d)/ + abc + 0: b + +/(?(?=.*b).*b|^d)/ + abc + 0: ab + / End of testinput1 / diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 2ac018b..477c145 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -9638,4 +9638,56 @@ No first char No need char Starting byte set: x y z +/(?(?=.*b)b|^)/CI +Capturing subpattern count = 0 +Partial matching not supported +Options: +No first char +No need char + adc +--->adc + +0 ^ (?(?=.*b)b|^) + +2 ^ (?=.*b) + +5 ^ .* + +7 ^ ^ b + +7 ^ ^ b + +7 ^^ b + +7 ^ b + 0: + abc +--->abc + +0 ^ (?(?=.*b)b|^) + +2 ^ (?=.*b) + +5 ^ .* + +7 ^ ^ b + +7 ^ ^ b + +7 ^^ b + +8 ^ ^ ) + +9 ^ b + +0 ^ (?(?=.*b)b|^) + +2 ^ (?=.*b) + +5 ^ .* + +7 ^ ^ b + +7 ^^ b + +7 ^ b + +8 ^^ ) + +9 ^ b ++10 ^^ | ++13 ^^ + 0: b + +/(?(?=b).*b|^d)/I +Capturing subpattern count = 0 +Partial matching not supported +No options +No first char +No need char + +/(?(?=.*b).*b|^d)/I +Capturing subpattern count = 0 +Partial matching not supported +No options +First char at start or follows newline +No need char + / End of testinput2 / |