diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-09-07 10:48:32 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-09-07 10:48:32 -0700 |
commit | 956829c18e8ade666083f1c69043a16a80f70b0d (patch) | |
tree | 3618849876b02ad81c96520eabe8237ae4135e77 /Test/V07pcre.ztst | |
parent | b7ba62871e1bc6a7b88882fea021a8eaaf9150c9 (diff) | |
download | zsh-956829c18e8ade666083f1c69043a16a80f70b0d.tar.gz zsh-956829c18e8ade666083f1c69043a16a80f70b0d.tar.xz zsh-956829c18e8ade666083f1c69043a16a80f70b0d.zip |
33122: typo from 32891 caused incorrect matches for pcre_match -n
Diffstat (limited to 'Test/V07pcre.ztst')
-rw-r--r-- | Test/V07pcre.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst index f5b05deaa..3a65331b3 100644 --- a/Test/V07pcre.ztst +++ b/Test/V07pcre.ztst @@ -108,3 +108,12 @@ >1 >0 xo→t →t >0 Xo→t →t + + string="The following zip codes: 78884 90210 99513" + pcre_compile -m "\d{5}" + pcre_match -b -- $string && print "$MATCH; ZPCRE_OP: $ZPCRE_OP" + pcre_match -b -n $ZPCRE_OP[(w)2] -- $string || print failed + print "$MATCH; ZPCRE_OP: $ZPCRE_OP" +0:pcre_match -b and pcre_match -n +>78884; ZPCRE_OP: 25 30 +>90210; ZPCRE_OP: 31 36 |