We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hard-break-spaces
1 parent 63d24e7 commit 31f5069Copy full SHA for 31f5069
lib/rules/hard-break-spaces.js
@@ -49,7 +49,7 @@ function hardBreakSpaces(ast, file, preferred, done) {
49
return;
50
}
51
52
- value = contents.slice(start, end).split('\n', 1)[0];
+ value = contents.slice(start, end).split('\n', 1)[0].replace(/\r$/, '');
53
54
if (value.length > 2) {
55
file.warn('Use two spaces for hard line breaks', node);
0 commit comments