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:
parent
7b9fbf2c76
commit
7c7bc8ee2f
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class MockOutputStream extends Stream
|
||||||
@written.push data
|
@written.push data
|
||||||
|
|
||||||
lastWrite: (fromEnd = -1) ->
|
lastWrite: (fromEnd = -1) ->
|
||||||
@written[@written.length - 1 + fromEnd].replace /\n$/, ''
|
@written[@written.length - 1 + fromEnd].replace /\r?\n$/, ''
|
||||||
|
|
||||||
# Create a dummy history file
|
# Create a dummy history file
|
||||||
historyFile = '.coffee_history_test'
|
historyFile = '.coffee_history_test'
|
||||||
|
|
Loading…
Add table
Reference in a new issue