Browse Source

Fixed hashtag highlighting

master
Igor Zhukov 10 years ago
parent
commit
acb09bd7b5
  1. 10
      app/js/services.js

10
app/js/services.js

@ -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])
); );
} }
} }

Loading…
Cancel
Save