Fix Style/SlicingWithRange
cop (#25923)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user