Skip to content

Commit c8a4391

Browse files
authored
Merge pull request #263 from jackysee/patch-1
Use universal line (\n) end for find error
2 parents ca96d7f + 98f7695 commit c8a4391

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

linter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import json
1414
import logging
15-
import os
1615
import re
1716
from SublimeLinter.lint import NodeLinter
1817

@@ -57,7 +56,7 @@ def find_errors(self, output):
5756
# only parse the last line, which is hopefully the actual eslint
5857
# output.
5958
# https://github.com/SublimeLinter/SublimeLinter-eslint/issues/251
60-
last_line = output.rstrip().split(os.linesep)[-1]
59+
last_line = output.rstrip().split('\n')[-1]
6160
content = json.loads(last_line)
6261
except ValueError:
6362
logger.error(

0 commit comments

Comments
 (0)