Merge branch 'fix/aws-newline'

This commit is contained in:
Sebastian Serth
2022-04-24 18:29:29 +02:00

View File

@ -71,8 +71,8 @@ class Runner::Connection::Buffer
@buffering = false
@global_buffer = +''
# For our buffering, we identified line breaks with the `\n` and removed those temporarily.
# Thus, we now re-add the `\n` at the end of the string and remove the `\r` at the same time.
message = message.gsub(/\r$/, "\n")
# Thus, we now re-add the `\n` at the end of the string and (optionally) remove a trailing `\r` at the same time.
message = message.gsub(/\r?$/, "\n")
@line_buffer.push message
end