From acb09bd7b590e7fb98c2ae234883517c1717a707 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 13 Feb 2015 01:13:42 +0300 Subject: [PATCH] Fixed hashtag highlighting --- app/js/services.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index eaa3f231..378ae342 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -3680,20 +3680,18 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) html.push(encodeEntities(match[7])); } } - else if (match[8]) { + else if (match[9]) { if (!options.noLinks) { html.push( - match[8], '', - encodeEntities(match[8]), + encodeEntities(match[9]), '' ); } else { html.push( - match[8], - encodeEntities(match[8]) + encodeEntities(match[9]) ); } }