2.2.1 - Handle mentions at end of string

This commit is contained in:
Mispy 2014-04-20 06:17:48 -07:00
parent 95a075899a
commit d676eaa77f
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ module Ebooks
mless = ev[:text]
begin
ev.attrs[:entities][:user_mentions].reverse.each do |entity|
mless = mless[0...entity[:indices][0]] + mless[entity[:indices][1]+1..-1]
mless = mless[0...entity[:indices][0]] + mless[entity[:indices][1]..-1].strip
end
rescue Exception
p ev.attrs[:entities][:user_mentions]