Skip to content

Commit

Permalink
Stringify anything passed to Frame#split
Browse files Browse the repository at this point in the history
Lots of things are passed to Frame#split, and errors are hard to track
down without know the context anyway. So hopefully this helps rather
than hinders.
  • Loading branch information
acook committed Oct 8, 2023
1 parent 2a86dc4 commit 3c4fff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remedy/frame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def sizeof content
end

def split line
line.split(/\r\n|\n\r|\n|\r/)
line.to_s.split(/\r\n|\n\r|\n|\r/)
end
end
end

0 comments on commit 3c4fff3

Please sign in to comment.