diff options
author | Anatol Belski <ab@php.net> | 2018-09-18 14:16:06 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-09-18 14:16:52 +0200 |
commit | d918e0776b5168aed2707b0ca500589844f0faa8 (patch) | |
tree | 163b322349a4eab8ba37942c7186b5ec4f8dda2f /ext/pcre/pcre2lib/pcre2_extuni.c | |
parent | 4f36acb9e65935aa657f1f22e2320a401bdbdad3 (diff) | |
download | php-git-d918e0776b5168aed2707b0ca500589844f0faa8.tar.gz |
Upgrade PCRE2 to 10.32
Diffstat (limited to 'ext/pcre/pcre2lib/pcre2_extuni.c')
-rw-r--r-- | ext/pcre/pcre2lib/pcre2_extuni.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pcre/pcre2lib/pcre2_extuni.c b/ext/pcre/pcre2lib/pcre2_extuni.c index 11a0bfbdd6..237211abf7 100644 --- a/ext/pcre/pcre2lib/pcre2_extuni.c +++ b/ext/pcre/pcre2lib/pcre2_extuni.c @@ -129,11 +129,11 @@ while (eptr < end_subject) if ((ricount & 1) != 0) break; /* Grapheme break required */ } - /* If Extend follows E_Base[_GAZ] do not update lgb; this allows - any number of Extend before a following E_Modifier. */ + /* If Extend or ZWJ follows Extended_Pictographic, do not update lgb; this + allows any number of them before a following Extended_Pictographic. */ - if (rgb != ucp_gbExtend || - (lgb != ucp_gbE_Base && lgb != ucp_gbE_Base_GAZ)) + if ((rgb != ucp_gbExtend && rgb != ucp_gbZWJ) || + lgb != ucp_gbExtended_Pictographic) lgb = rgb; eptr += len; |