Skip to content

Commit

Permalink
chore(evasive-transform): normalize linebreaks in snapshots even more
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Oct 23, 2023
1 parent 8d9d2b7 commit 943d3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/test-evade-censor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { test } from './prepare-test-env-ava.js';
* @returns {string}
*/
function stripLinefeeds(str) {
return str.replace(/\r?\n/g, '');
return str.replace(/\r?\n|\r/g, '');
}

test('evadeCensor() - missing "source" arg', async t => {
Expand Down

0 comments on commit 943d3b9

Please sign in to comment.