Buffer: Prevent replacement of "\r" message
This commit is contained in:
@ -72,7 +72,7 @@ class Runner::Connection::Buffer
|
|||||||
@global_buffer = +''
|
@global_buffer = +''
|
||||||
# For our buffering, we identified line breaks with the `\n` and removed those temporarily.
|
# 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` in the same time.
|
# Thus, we now re-add the `\n` at the end of the string and remove the `\r` in the same time.
|
||||||
message = message.gsub(/\r$/, "\n")
|
message = message.gsub(/\r$/, "\n") unless message.length == 1
|
||||||
@line_buffer.push message
|
@line_buffer.push message
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user