Fix Style/SlicingWithRange
cop (#25923)
This commit is contained in:
parent
658742b3cd
commit
b8b2470cf8
12 changed files with 13 additions and 28 deletions
|
@ -53,7 +53,7 @@ class EmojiFormatter
|
|||
end
|
||||
end
|
||||
|
||||
result << Nokogiri::XML::Text.new(text[last_index..-1], tree.document)
|
||||
result << Nokogiri::XML::Text.new(text[last_index..], tree.document)
|
||||
node.replace(result)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue