better rules for stripping combined chars, based on 45c0d327619 by @ctrlcctrlv
This commit is contained in:
parent
d069a4c9fd
commit
126ee42b9d
@ -2152,16 +2152,7 @@ function strip_combining_chars($str) {
|
|||||||
$o = 0;
|
$o = 0;
|
||||||
$ord = ordutf8($char, $o);
|
$ord = ordutf8($char, $o);
|
||||||
|
|
||||||
if ($ord >= 768 && $ord <= 879)
|
if ( ($ord >= 768 && $ord <= 879) || ($ord >= 1536 && $ord <= 1791) || ($ord >= 3655 && $ord <= 3659) || ($ord >= 7616 && $ord <= 7679) || ($ord >= 8400 && $ord <= 8447) || ($ord >= 65056 && $ord <= 65071))
|
||||||
continue;
|
|
||||||
|
|
||||||
if ($ord >= 7616 && $ord <= 7679)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ($ord >= 8400 && $ord <= 8447)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ($ord >= 65056 && $ord <= 65071)
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
$str .= $char;
|
$str .= $char;
|
||||||
|
Loading…
Reference in New Issue
Block a user