Skip to content

Commit 11561dd

Browse files
authored
Merge pull request #4329 from shreeve/strip-cr-if-present
strip \r (if present) before final \n
2 parents 7b9fbf2 + 7c7bc8e commit 11561dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/repl.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MockOutputStream extends Stream
2525
@written.push data
2626

2727
lastWrite: (fromEnd = -1) ->
28-
@written[@written.length - 1 + fromEnd].replace /\n$/, ''
28+
@written[@written.length - 1 + fromEnd].replace /\r?\n$/, ''
2929

3030
# Create a dummy history file
3131
historyFile = '.coffee_history_test'

0 commit comments

Comments
 (0)