Skip to content

Commit 52e6585

Browse files
authored
Use universal line (\n) end for find error
1 parent ca96d7f commit 52e6585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def find_errors(self, output):
5757
# only parse the last line, which is hopefully the actual eslint
5858
# output.
5959
# https://github.com/SublimeLinter/SublimeLinter-eslint/issues/251
60-
last_line = output.rstrip().split(os.linesep)[-1]
60+
last_line = output.rstrip().split('\n')[-1]
6161
content = json.loads(last_line)
6262
except ValueError:
6363
logger.error(

0 commit comments

Comments
 (0)