diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2018-10-20 09:28:02 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2018-10-20 09:28:02 +0000 |
commit | 25d9688c423ba348c3bb0370343c0a22807f900e (patch) | |
tree | 5ac4a79b6d64ad330088dc1d597a658189465b95 /testdata | |
parent | a5b6bbcc28348f8f66327a4a9f21b2eb8e0feb3d (diff) | |
download | pcre2-25d9688c423ba348c3bb0370343c0a22807f900e.tar.gz |
Fix zero-repeated subroutine call at start of pattern bug, which recorded an
incorrect first code unit.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1032 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput1 | 15 | ||||
-rw-r--r-- | testdata/testoutput1 | 24 |
2 files changed, 39 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1 index 84f51e0..3fd5d2a 100644 --- a/testdata/testinput1 +++ b/testdata/testinput1 @@ -6328,4 +6328,19 @@ ef) x/x,mark \= Expect no match aaaa +/ (?<word> \w+ )* \. /xi + pokus. + +/(?(DEFINE) (?<word> \w+ ) ) (?&word)* \./xi + pokus. + +/(?(DEFINE) (?<word> \w+ ) ) ( (?&word)* ) \./xi + pokus. + +/(?&word)* (?(DEFINE) (?<word> \w+ ) ) \./xi + pokus. + +/(?&word)* \. (?<word> \w+ )/xi + pokus.hokus + # End of testinput1 diff --git a/testdata/testoutput1 b/testdata/testoutput1 index 2937ad0..8fd67b3 100644 --- a/testdata/testoutput1 +++ b/testdata/testoutput1 @@ -10025,4 +10025,28 @@ No match aaaa No match +/ (?<word> \w+ )* \. /xi + pokus. + 0: pokus. + 1: pokus + +/(?(DEFINE) (?<word> \w+ ) ) (?&word)* \./xi + pokus. + 0: pokus. + +/(?(DEFINE) (?<word> \w+ ) ) ( (?&word)* ) \./xi + pokus. + 0: pokus. + 1: <unset> + 2: pokus + +/(?&word)* (?(DEFINE) (?<word> \w+ ) ) \./xi + pokus. + 0: pokus. + +/(?&word)* \. (?<word> \w+ )/xi + pokus.hokus + 0: pokus.hokus + 1: hokus + # End of testinput1 |