1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-12-30 21:21:16 +00:00

Merge pull request #195 from wezpyke/missing-return

Added missing @return
This commit is contained in:
Andrea Giammarchi 2016-12-20 21:12:59 +00:00 committed by GitHub
commit 33457ff95c
2 changed files with 2 additions and 0 deletions

View File

@ -803,6 +803,7 @@ function createTwemoji(re) {
* and to convert utf16 into code points. * and to convert utf16 into code points.
* If there is a zero-width-joiner (U+200D), leave the variants in. * If there is a zero-width-joiner (U+200D), leave the variants in.
* @param string the raw text of the emoji match * @param string the raw text of the emoji match
* @return string the code point
*/ */
function grabTheRightIcon(rawText) { function grabTheRightIcon(rawText) {
// if variant is present as \uFE0F // if variant is present as \uFE0F

View File

@ -595,6 +595,7 @@ function createTwemoji(re) {
* and to convert utf16 into code points * and to convert utf16 into code points
* @param string the emoji surrogate pair * @param string the emoji surrogate pair
* @param string the optional variant char, if any * @param string the optional variant char, if any
* @return string the code point
*/ */
function grabTheRightIcon(icon, variant) { function grabTheRightIcon(icon, variant) {
// if variant is present as \uFE0F // if variant is present as \uFE0F