Skip to content

Commit

Permalink
feat(common): xml: map \r\n to \n
Browse files Browse the repository at this point in the history
- help make the parsed form identical across platforms

Fixes: #12208
  • Loading branch information
srl295 committed Sep 27, 2024
1 parent 609faf8 commit 7da7375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions developer/src/common/web/utils/test/test-xml-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ describe(`XML Reader Test ${GEN_XML_FIXTURES && '(update mode!)' || ''}`, () =>
const xml = readData(xmlPath);
assert.ok(xml, `Could not read ${xmlPath}`);

// now, parse
const actual = reader.parse(xml);
// now, parse. subsitute endings for Win
const actual = reader.parse(xml.replace(/\r\n/g, '\n'));
assert.ok(actual, `Parser failed on ${xmlPath}`);

// get the expected
Expand Down

0 comments on commit 7da7375

Please sign in to comment.