From aac1fcb9beba8a37d7c4e92ffa4c7ee75a51bcc1 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 16 Feb 2015 18:02:09 +0300 Subject: [PATCH] Fixed wrapPlaintext --- app/js/services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index d24f1cbc..f947c8af 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -3839,8 +3839,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) while ((match = raw.match(regExp))) { text.push(raw.substr(0, match.index)); - if (match[7]) { - if ((emojiCode = emojiMap[match[7]]) && + if (match[8]) { + if ((emojiCode = emojiMap[match[8]]) && (emojiTitle = emojiData[emojiCode][1][0])) { text.push(':' + emojiTitle + ':'); } else {