Regex: Update PCRE to v8.35.
I was über lazy at first, so took libs from SM. But actually it's quite easy to compile, so let's update to latest version \o/.
This commit is contained in:
89
tools/pcre/testdata/testinput8
vendored
89
tools/pcre/testdata/testinput8
vendored
@ -1,5 +1,8 @@
|
||||
/-- This set of tests check the DFA matching functionality of pcre_dfa_exec().
|
||||
The -dfa flag must be used with pcretest when running it. --/
|
||||
/-- This set of tests check the DFA matching functionality of pcre_dfa_exec(),
|
||||
excluding UTF and Unicode property support. The -dfa flag must be used with
|
||||
pcretest when running it. --/
|
||||
|
||||
< forbid 8W
|
||||
|
||||
/abc/
|
||||
abc
|
||||
@ -16,7 +19,7 @@
|
||||
ac
|
||||
ab
|
||||
|
||||
/a*/
|
||||
/a*/O
|
||||
a
|
||||
aaaaaaaaaaaaaaaaa
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@ -177,19 +180,19 @@
|
||||
ayzq
|
||||
axyzq
|
||||
|
||||
/[^a]+/
|
||||
/[^a]+/O
|
||||
bac
|
||||
bcdefax
|
||||
*** Failers
|
||||
aaaaa
|
||||
|
||||
/[^a]*/
|
||||
/[^a]*/O
|
||||
bac
|
||||
bcdefax
|
||||
*** Failers
|
||||
aaaaa
|
||||
|
||||
/[^a]{3,5}/
|
||||
/[^a]{3,5}/O
|
||||
xyz
|
||||
awxyza
|
||||
abcdefa
|
||||
@ -937,16 +940,16 @@
|
||||
*** Failers
|
||||
the abc
|
||||
|
||||
/^[ab]{1,3}(ab*|b)/
|
||||
/^[ab]{1,3}(ab*|b)/O
|
||||
aabbbbb
|
||||
|
||||
/^[ab]{1,3}?(ab*|b)/
|
||||
/^[ab]{1,3}?(ab*|b)/O
|
||||
aabbbbb
|
||||
|
||||
/^[ab]{1,3}?(ab*?|b)/
|
||||
/^[ab]{1,3}?(ab*?|b)/O
|
||||
aabbbbb
|
||||
|
||||
/^[ab]{1,3}(ab*?|b)/
|
||||
/^[ab]{1,3}(ab*?|b)/O
|
||||
aabbbbb
|
||||
|
||||
/ (?: [\040\t] | \(
|
||||
@ -1923,14 +1926,16 @@
|
||||
abc\100\060
|
||||
abc\100\60
|
||||
|
||||
/abc\81/
|
||||
abc\081
|
||||
abc\0\x38\x31
|
||||
|
||||
/abc\91/
|
||||
abc\091
|
||||
abc\0\x39\x31
|
||||
|
||||
/^A\8B\9C$/
|
||||
A8B9C
|
||||
*** Failers
|
||||
A\08B\09C
|
||||
|
||||
/^[A\8B\9C]+$/
|
||||
A8B9C
|
||||
*** Failers
|
||||
A8B9C\x00
|
||||
|
||||
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
|
||||
abcdefghijk\12S
|
||||
|
||||
@ -2049,13 +2054,13 @@
|
||||
/foo(.*?)bar/
|
||||
The food is under the bar in the barn.
|
||||
|
||||
/(.*)(\d*)/
|
||||
/(.*)(\d*)/O
|
||||
I have 2 numbers: 53147
|
||||
|
||||
/(.*)(\d+)/
|
||||
I have 2 numbers: 53147
|
||||
|
||||
/(.*?)(\d*)/
|
||||
/(.*?)(\d*)/O
|
||||
I have 2 numbers: 53147
|
||||
|
||||
/(.*?)(\d+)/
|
||||
@ -3825,13 +3830,6 @@
|
||||
/a*/g
|
||||
abbab
|
||||
|
||||
/^[a-\d]/
|
||||
abcde
|
||||
-things
|
||||
0digit
|
||||
*** Failers
|
||||
bcdef
|
||||
|
||||
/^[\d-a]/
|
||||
abcde
|
||||
-things
|
||||
@ -4699,7 +4697,7 @@
|
||||
/(?(R)a*(?1)|((?R))b)/
|
||||
aaaabcde
|
||||
|
||||
/(a+)/
|
||||
/(a+)/O
|
||||
\O6aaaa
|
||||
\O8aaaa
|
||||
|
||||
@ -4798,4 +4796,39 @@
|
||||
xxxxxxxxabcd
|
||||
xx\xa0xxxxxabcd
|
||||
|
||||
/abcd/
|
||||
abcd\O0
|
||||
|
||||
/-- These tests show up auto-possessification --/
|
||||
|
||||
/[ab]*/
|
||||
aaaa
|
||||
|
||||
/[ab]*?/
|
||||
aaaa
|
||||
|
||||
/[ab]?/
|
||||
aaaa
|
||||
|
||||
/[ab]??/
|
||||
aaaa
|
||||
|
||||
/[ab]+/
|
||||
aaaa
|
||||
|
||||
/[ab]+?/
|
||||
aaaa
|
||||
|
||||
/[ab]{2,3}/
|
||||
aaaa
|
||||
|
||||
/[ab]{2,3}?/
|
||||
aaaa
|
||||
|
||||
/[ab]{2,}/
|
||||
aaaa
|
||||
|
||||
/[ab]{2,}?/
|
||||
aaaa
|
||||
|
||||
/-- End of testinput8 --/
|
||||
|
Reference in New Issue
Block a user