Skip to content

Commit 9181283

Browse files
committed
fix newlines
1 parent 78cee8b commit 9181283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Errors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const prettyFormatOptions = {
4444
return `"${val
4545
.replace(/\\/gm, "/")
4646
.replace(/"/gm, '\\"')
47-
.replace(/\n/gm, "\\n")}"`;
47+
.replace(/\r?\n/gm, "\\n")}"`;
4848
}
4949
}
5050
]

0 commit comments

Comments
 (0)