From 7e4e6cbd2f2503966dd851e0596b7606f8ba7c3f Mon Sep 17 00:00:00 2001 From: erqan Date: Thu, 15 May 2014 15:09:32 +0300 Subject: [PATCH] added ' and ; to hastag delimiters --- src/twister.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twister.cpp b/src/twister.cpp index adedb34f..be33e69a 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 ) {