Skip to content

Commit

Permalink
refactor: removing \r on erase outside range
Browse files Browse the repository at this point in the history
  • Loading branch information
gp-pereira committed Nov 21, 2024
1 parent bdce362 commit 36660f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/refactorex/parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ defmodule Refactorex.Parser do

def erase_outside_range(text, range) do
text
|> String.replace("\r", "")
|> replace_newline_with_placeholder()
|> String.split("\n")
|> Stream.with_index(1)
Expand Down

0 comments on commit 36660f6

Please sign in to comment.