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

Commit

Permalink
Merge pull request #135 from driver-by/master
Browse files Browse the repository at this point in the history
Allow ascii emjoji before '?' symbol, remove unnecessary '.' escaping ...
  • Loading branch information
mikebe11 committed Oct 20, 2015
2 parents 79aab94 + ce18243 commit 2372a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/js/emojione.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/php/src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function shortnameToUnicode($string)
$ruleset = $this->getRuleset();
$asciiRegexp = $ruleset->getAsciiRegexp();

$string = preg_replace_callback('/'.$this->ignoredRegexp.'|((\\s|^)'.$asciiRegexp.'(?=\\s|$|[!,\.]))/S', array($this, 'asciiToUnicodeCallback'), $string);
$string = preg_replace_callback('/'.$this->ignoredRegexp.'|((\\s|^)'.$asciiRegexp.'(?=\\s|$|[!,.?]))/S', array($this, 'asciiToUnicodeCallback'), $string);
}

return $string;
Expand Down Expand Up @@ -117,7 +117,7 @@ public function shortnameToImage($string)
$ruleset = $this->getRuleset();
$asciiRegexp = $ruleset->getAsciiRegexp();

$string = preg_replace_callback('/'.$this->ignoredRegexp.'|((\\s|^)'.$asciiRegexp.'(?=\\s|$|[!,\.]))/S', array($this, 'asciiToImageCallback'), $string);
$string = preg_replace_callback('/'.$this->ignoredRegexp.'|((\\s|^)'.$asciiRegexp.'(?=\\s|$|[!,.?]))/S', array($this, 'asciiToImageCallback'), $string);
}

return $string;
Expand Down

0 comments on commit 2372a14

Please sign in to comment.