Skip to content

Commit

Permalink
Merge pull request #289 from sudheesh001/Patch286
Browse files Browse the repository at this point in the history
Fixes #286 Allows non english character based hashtags to be correctly identified.
  • Loading branch information
prasht63 committed Jul 5, 2015
2 parents 8a6f34f + fcd776f commit fbe530a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/js/filters/tweetHashtag.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ var filtersModule = require('./_index.js');

filtersModule.filter('tweetHashtag', function () {
return function(input) {
var aTag = '<a class="external-hashtag" rel="external" href="./search?q=%23$1">#$1</a>';
var hashtagReg = /#([\wäöå]+)/gi;
var aTag = '<a class="external-hashtag" rel="external" href="./search?q=%23$1">#$1</a>&nbsp;';
var hashtagReg = /#([^#^\ ^@]+)[\s,;]*/gi;
return input.replace(hashtagReg, aTag);
};
});

0 comments on commit fbe530a

Please sign in to comment.