Merge pull request #70 from Stawberri/fix_regexp_warning

Fixed a warning message
This commit is contained in:
Jaiden Mispy 2015-01-17 12:18:42 +10:00
commit d3183bd75f

View file

@ -389,7 +389,7 @@ module Ebooks
return false return false
end end
text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i text = meta.reply_prefix + text unless text.match(/@#{Regexp.escape ev.user.screen_name}/i)
log "Replying to @#{ev.user.screen_name} with: #{text}" log "Replying to @#{ev.user.screen_name} with: #{text}"
tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id)) tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id))
conversation(tweet).add(tweet) conversation(tweet).add(tweet)