From 942421321bdd805502bf46d4dadbb1d1b0df7558 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 13 Feb 2015 19:37:11 +0300 Subject: [PATCH] fixed typeof bug --- app/js/message_composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/message_composer.js b/app/js/message_composer.js index 6573edf7..f7e716df 100644 --- a/app/js/message_composer.js +++ b/app/js/message_composer.js @@ -53,7 +53,7 @@ if (Array.isArray(shortcut)) { shortcut = shortcut[0]; } - if (shortcut && typeof shortcut !== 'string') { + if (shortcut && typeof shortcut === 'string') { if (shortcut.charAt(0) == ':') { shortcut = shortcut.substr(1, shortcut.length - 2); }