Browse Source

added more delimiters for hashtag

master
erqan 11 years ago
parent
commit
be9e470843
  1. 2
      js/twister_formatpost.js

2
js/twister_formatpost.js

@ -310,7 +310,7 @@ function _extractUsername(s) { @@ -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;

Loading…
Cancel
Save