Skip to content

Commit

Permalink
fixed windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWise committed Feb 1, 2024
1 parent 630fe7d commit c716527
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/toml-test.js
Expand Up @@ -107,6 +107,5 @@ function format(table) {

function normalizeLines(str) {
if (EOL === '\n') return str;
if (EOL === '\r\n') return str.replace(/\\n/g, '\\r\\n');
throw new TypeError('Unexpected EOL');
return str.replace(/\n/g, EOL);
}

0 comments on commit c716527

Please sign in to comment.