twitter_ebooks 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twitter_ebooks/bot.rb +1 -1
- data/lib/twitter_ebooks/version.rb +1 -1
- metadata +1 -1
data/lib/twitter_ebooks/bot.rb
CHANGED
@@ -95,7 +95,7 @@ module Ebooks
|
|
95
95
|
mless = ev[:text]
|
96
96
|
begin
|
97
97
|
ev.attrs[:entities][:user_mentions].reverse.each do |entity|
|
98
|
-
mless = mless[0...entity[:indices][0]] + mless[entity[:indices][1]
|
98
|
+
mless = mless[0...entity[:indices][0]] + mless[entity[:indices][1]...-1]
|
99
99
|
end
|
100
100
|
rescue Exception
|
101
101
|
p ev.attrs[:entities][:user_mentions]
|