Skip to content

Commit 20570fc

Browse files
committed
Fixed express(1) eol on 0.4.x. Closes expressjs#947
1 parent 92c1c95 commit 20570fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/express

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ var cssEngine;
3131
* End-of-line code.
3232
*/
3333

34-
var eol = 'win32' == os.platform() ? '\r\n' : '\n';
34+
var eol = os.platform
35+
? ('win32' == os.platform() ? '\r\n' : '\n')
36+
: '\n';
3537

3638
/**
3739
* Template engine to utilize.

0 commit comments

Comments
 (0)