flight-plan-converter
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -49,3 +49,3 @@ 'use strict'; | ||
' </Placemark>' | ||
].join('\n'); | ||
].join('\r\n'); | ||
} | ||
@@ -100,3 +100,3 @@ | ||
.map(coordinatesFromWaypoint) | ||
.join('\n '), | ||
.join('\r\n '), | ||
' </coordinates>', | ||
@@ -108,3 +108,3 @@ ' </LineString>', | ||
'</kml>' | ||
]).join('\n'); | ||
]).join('\r\n'); | ||
}; |
@@ -53,3 +53,3 @@ 'use strict'; | ||
) | ||
.join('\n'); | ||
.join('\r\n'); | ||
}; |
@@ -7,8 +7,9 @@ 'use strict'; | ||
var parser = require('./xplane_fms'); | ||
var normalizeLineBreaks = require('../utils/normalizeLineBreaks'); | ||
function getFms(filename) { | ||
return fs.readFileSync( | ||
return normalizeLineBreaks(fs.readFileSync( | ||
path.join(__dirname, '../../fixtures/xplane_fms/' + filename), | ||
'utf8' | ||
); | ||
)); | ||
} | ||
@@ -15,0 +16,0 @@ |
'use strict'; | ||
module.exports = function normalizeLineBreaks (str) { | ||
return str.replace(/(\r\n|\r)/gm, '\n'); | ||
return str.replace(/(\r\n|\r|\n)/gm, '\r\n'); | ||
}; |
{ | ||
"name": "flight-plan-converter", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Converts Flight Plans from and to various file formats.", | ||
@@ -5,0 +5,0 @@ "bin": "cli.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23178
678