diff --git a/src/twister.cpp b/src/twister.cpp index be33e69a..0bd38a42 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -1230,7 +1230,7 @@ void updateSeenHashtags(std::string &message, int64_t msgTime) // split and look for hashtags vector tokens; set hashtags; - boost::algorithm::split(tokens,message,boost::algorithm::is_any_of(" \n\t.,:/?!;'"), + boost::algorithm::split(tokens,message,boost::algorithm::is_any_of(" \n\t.,:/?!;'\"()[]{}*"), boost::algorithm::token_compress_on); BOOST_FOREACH(string const& token, tokens) { if( token.length() >= 2 ) { @@ -1497,7 +1497,7 @@ Value newpostmsg(const Array& params, bool fHelp) // split and look for mentions and hashtags vector tokens; - boost::algorithm::split(tokens,strMsg,boost::algorithm::is_any_of(" \n\t.,:/?!;'"), + boost::algorithm::split(tokens,strMsg,boost::algorithm::is_any_of(" \n\t.,:/?!;'\"()[]{}*"), boost::algorithm::token_compress_on); BOOST_FOREACH(string const& token, tokens) { if( token.length() >= 2 ) {