Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0c53637

Browse files
committed
Use os.EOL instead of own logic for line endings
1 parent 2069f4e commit 0c53637

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ function getSpecificationVersion() {
140140
* @returns {String}
141141
*/
142142
function detectLineEnding() {
143-
if ( os.platform() === 'win32' )
144-
return '\r\n';
145-
if ( os.platform() === 'darwin' )
146-
return '\r';
147-
return '\n';
143+
return os.EOL;
148144
}
149145

150146
/**

0 commit comments

Comments
 (0)