Fixed hashtag highlighting

This commit is contained in:
Igor Zhukov 2015-02-13 01:13:42 +03:00
parent 7df3d86c00
commit acb09bd7b5

View File

@ -3680,20 +3680,18 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
html.push(encodeEntities(match[7])); html.push(encodeEntities(match[7]));
} }
} }
else if (match[8]) { else if (match[9]) {
if (!options.noLinks) { if (!options.noLinks) {
html.push( html.push(
match[8],
'<a href="#/im?q=', '<a href="#/im?q=',
encodeURIComponent(match[8]), encodeURIComponent(match[9]),
'">', '">',
encodeEntities(match[8]), encodeEntities(match[9]),
'</a>' '</a>'
); );
} else { } else {
html.push( html.push(
match[8], encodeEntities(match[9])
encodeEntities(match[8])
); );
} }
} }