diff --git a/lib/twitter_ebooks/model.rb b/lib/twitter_ebooks/model.rb index 9a79b48..9924584 100644 --- a/lib/twitter_ebooks/model.rb +++ b/lib/twitter_ebooks/model.rb @@ -59,13 +59,13 @@ module Ebooks statements.each do |s| @sentences << NLP.tokenize(s).reject do |t| - t.start_with?('@') || t.start_with?('http') + t.include?('@') || t.include?('http') end end mentions.each do |s| @mentions << NLP.tokenize(s).reject do |t| - t.start_with?('@') || t.start_with?('http') + t.include?('@') || t.include?('http') end end