We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f52401 + 49f140c commit fd7e55dCopy full SHA for fd7e55d
1 file changed
lib/emoji.js
@@ -80,6 +80,8 @@ Emoji.which = function which(emoji_code) {
80
* @return {string}
81
*/
82
Emoji.emojify = function emojify(str, on_missing) {
83
+ if (!str) return '';
84
+
85
return str.split(parser) // parse emoji via regex
86
.map(function parseEmoji(s, i) {
87
// every second element is an emoji, e.g. "test :fast_forward:" -> [ "test ", "fast_forward" ]
0 commit comments