We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a2f9b commit 881ce66Copy full SHA for 881ce66
test/utils.mts
@@ -33,7 +33,11 @@ function normalizeLogSymbols(str: string): string {
33
}
34
35
function normalizeNewlines(str: string): string {
36
- return str.replaceAll('\r\n', '\n')
+ return str
37
+ // Replace all literal \r\n.
38
+ .replaceAll('\r\n', '\n')
39
+ // Replace all escaped \\r\\n.
40
+ .replaceAll('\\r\\n', '\n')
41
42
43
function stripZeroWidthSpace(str: string): string {
0 commit comments