Skip to content

Commit

Permalink
Fix CRLF line-endings in hard-break-spaces
Browse files Browse the repository at this point in the history
Closes GH-55
Closes GH-56
  • Loading branch information
UziTech authored and wooorm committed Apr 16, 2016
1 parent 63d24e7 commit 31f5069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/hard-break-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function hardBreakSpaces(ast, file, preferred, done) {
return;
}

value = contents.slice(start, end).split('\n', 1)[0];
value = contents.slice(start, end).split('\n', 1)[0].replace(/\r$/, '');

if (value.length > 2) {
file.warn('Use two spaces for hard line breaks', node);
Expand Down

0 comments on commit 31f5069

Please sign in to comment.