Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
If character doesn't match, append Variation Selector U+FE0F, and try…
Browse files Browse the repository at this point in the history
… again
  • Loading branch information
jensschulze committed Feb 17, 2016
1 parent f466fac commit 11c1f84
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/php/src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,16 @@ public function toShortCallback($m)

if (!in_array($unicode, $unicode_replace))
{
$unicode = substr($m[1], 0, 4);
$unicode .= "\xEF\xB8\x8F";

if (!in_array($unicode, $unicode_replace))
{
return $m[0];
$unicode = substr($m[1], 0, 4);

if (!in_array($unicode, $unicode_replace))
{
return $m[0];
}
}
}

Expand Down

0 comments on commit 11c1f84

Please sign in to comment.