From 0d3ad364b63fab3ceee9e5d69967d6f0a746b558 Mon Sep 17 00:00:00 2001 From: erqan Date: Thu, 15 May 2014 15:11:19 +0300 Subject: [PATCH 1/2] added ' and ; to hastag delimiters --- js/twister_formatpost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index e54cecb..83a6503 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -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; From be9e470843d956ef0863feae4e98f49f6ff9a1c8 Mon Sep 17 00:00:00 2001 From: erqan Date: Thu, 15 May 2014 15:29:03 +0300 Subject: [PATCH 2/2] added more delimiters for hashtag --- js/twister_formatpost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 83a6503..fe57fc1 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -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;