From 1748844bdd5e9ddd8e5971a44faaf0fc4809e163 Mon Sep 17 00:00:00 2001 From: Wez Pyke Date: Tue, 20 Dec 2016 15:24:43 +0000 Subject: [PATCH 1/2] Added missing @return --- twemoji-generator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/twemoji-generator.js b/twemoji-generator.js index 552b1d0e..2ebe9f63 100755 --- a/twemoji-generator.js +++ b/twemoji-generator.js @@ -595,6 +595,7 @@ function createTwemoji(re) { * and to convert utf16 into code points * @param string the emoji surrogate pair * @param string the optional variant char, if any + * @return string the code point */ function grabTheRightIcon(icon, variant) { // if variant is present as \uFE0F From 232b06355e53ba93dd48524c90e54d032ee4dbc5 Mon Sep 17 00:00:00 2001 From: Wez Pyke Date: Tue, 20 Dec 2016 20:56:03 +0000 Subject: [PATCH 2/2] Added @return to correct file --- 2/utils/generate | 1 + 1 file changed, 1 insertion(+) diff --git a/2/utils/generate b/2/utils/generate index 23ee479a..4e511a55 100755 --- a/2/utils/generate +++ b/2/utils/generate @@ -803,6 +803,7 @@ function createTwemoji(re) { * and to convert utf16 into code points. * If there is a zero-width-joiner (U+200D), leave the variants in. * @param string the raw text of the emoji match + * @return string the code point */ function grabTheRightIcon(rawText) { // if variant is present as \uFE0F