From 8335b002c9c1e9976434458607bfb23826659ede Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 19 Mar 2015 21:52:00 +0300 Subject: [PATCH] Make highlight case-insensitive --- app/js/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 812414f4..8f8c1d9c 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -3862,7 +3862,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) if (match[3]) { // telegram.me links if (!options.noLinks) { var attr = ''; - if (options.highlightUsername == match[3] && + if (options.highlightUsername && + options.highlightUsername.toLowerCase() == match[3].toLowerCase() && match[2] == '@') { attr = 'class="im_message_mymention"'; }