mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
added more delimiters for hashtag
This commit is contained in:
parent
0d3ad364b6
commit
be9e470843
@ -310,7 +310,7 @@ function _extractUsername(s) {
|
|||||||
function _extractHashtag(s) {
|
function _extractHashtag(s) {
|
||||||
var hashtag = "";
|
var hashtag = "";
|
||||||
for( var i = 0; i < s.length; i++ ) {
|
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];
|
hashtag += s[i];
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user