fix: get rid of CRLF (#5494)

This commit is contained in:
Ika authored and GitHub committed 2018-12-08 18:28:29 +08:00
1 parent b878a54e6a
commit 952bc0cc03
131 files changed
+2071 -2494

No files matched your search

+1 -5
View File
@@ -110,11 +110,7 @@ function genericPrint(path, options, print) {
}
case "css-comment": {
if (node.raws.content) {
return (
node.raws.content
// there's a bug in the less parser that trailing `\r`s are included in inline comments
.replace(/^(\/\/[^]+)\r+$/, "$1")
);
return node.raws.content;
}
const text = options.originalText.slice(
options.locStart(node),