Skip to content

Commit 3b2e319

Browse files
committed
pacify windows, maybe
1 parent 6ed938c commit 3b2e319

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/esrap.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ function clean(ast) {
4242
}
4343

4444
context.next();
45+
},
46+
JSXText(node) {
47+
return {
48+
...node,
49+
raw: node.raw.replaceAll('\\r', ''),
50+
value: node.value.replaceAll('\\r', '')
51+
};
4552
}
4653
});
4754

0 commit comments

Comments
 (0)