diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-10-05 15:45:11 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-10-05 15:45:11 +0000 |
commit | c728cbfd976748abdf0511801e805ff0c846cdf2 (patch) | |
tree | 20ecb1e9a1033c7a223740b78e5036ab7fc75750 /pcre_xclass.c | |
parent | 5f42224005b7d9a503903e3342ec7ada75590b07 (diff) | |
download | pcre-c728cbfd976748abdf0511801e805ff0c846cdf2.tar.gz |
Add VT to the set of characters recognized as white space.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1364 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_xclass.c')
-rw-r--r-- | pcre_xclass.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pcre_xclass.c b/pcre_xclass.c index d777acb..335b6aa 100644 --- a/pcre_xclass.c +++ b/pcre_xclass.c @@ -159,13 +159,11 @@ while ((t = *data++) != XCL_END) return !negated; break; + /* Perl space used to exclude VT, but from Perl 5.18 it is included, + which means that Perl space and POSIX space are now identical. PCRE + was changed at release 8.34. */ + case PT_SPACE: /* Perl space */ - if ((PRIV(ucp_gentype)[prop->chartype] == ucp_Z || - c == CHAR_HT || c == CHAR_NL || c == CHAR_FF || c == CHAR_CR) - == (t == XCL_PROP)) - return !negated; - break; - case PT_PXSPACE: /* POSIX space */ if ((PRIV(ucp_gentype)[prop->chartype] == ucp_Z || c == CHAR_HT || c == CHAR_NL || c == CHAR_VT || |