Skip to content

Commit 4e92b97

Browse files
committed
Fix structural repair whitespace handling on Windows
1 parent b433b1c commit 4e92b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json_remedy/layer2/structural_repair.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ defmodule JsonRemedy.Layer2.StructuralRepair do
394394
|> String.slice(state.position + 1, remaining_length)
395395
|> String.graphemes()
396396
|> Enum.find(fn char ->
397-
char not in [" ", "\t", "\n", "\r"]
397+
char not in [" ", "\t", "\n", "\r", "\r\n"]
398398
end)
399399
end
400400
end

0 commit comments

Comments
 (0)