Merge pull request #157 from erqan/hashtag-fix

added ' and ; to hashtag delimiters
This commit is contained in:
miguelfreitas 2014-05-18 15:40:21 -04:00
commit f6ee415bb8

View File

@ -310,7 +310,7 @@ function _extractUsername(s) {
function _extractHashtag(s) {
var hashtag = "";
for( var i = 0; i < s.length; i++ ) {
if( " \n\t.,:/?!".indexOf(s[i]) < 0 ) {
if( " \n\t.,:/?!;'\"()[]{}*".indexOf(s[i]) < 0 ) {
hashtag += s[i];
} else {
break;