1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

strip \r (if present) before final \n

This commit is contained in:
Steve Shreeve 2016-10-02 15:17:54 -04:00
parent 7b9fbf2c76
commit 7c7bc8ee2f

View file

@ -25,7 +25,7 @@ class MockOutputStream extends Stream
@written.push data
lastWrite: (fromEnd = -1) ->
@written[@written.length - 1 + fromEnd].replace /\n$/, ''
@written[@written.length - 1 + fromEnd].replace /\r?\n$/, ''
# Create a dummy history file
historyFile = '.coffee_history_test'