MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / checkLineEndings

Function checkLineEndings

scripts/format-changelog.js:302–307  ·  view source on GitHub ↗
(changelog)

Source from the content-addressed store, hash-verified

300}
301
302function checkLineEndings(changelog) {
303 if (changelog.indexOf("\r\n") != -1) {
304 console.error("Changelog contains Windows line endings, please convert to Unix line endings.");
305 process.exit(-1);
306 }
307}
308
309const filePath = process.argv[2];
310fs.readFile(filePath, 'utf8', (err, data) => {

Callers 1

Calls 2

indexOfMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected