Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit a9d5d71

Browse files
committed
Merge pull request #2 from Sinaloit/master
Updated Regex
2 parents 061ea1b + 3fee362 commit a9d5d71

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/linter-lua.coffee

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ class LinterLua extends Linter
1414

1515
# A regex pattern used to extract information from the executable's output.
1616
regex:
17-
'.+?:.+?:' +
17+
'^.+?:.+?:' +
1818
'(?<line>\\d+):\\s+' +
19-
'(?<message>.*)'
19+
'(?<message>.+?' +
20+
'(?:near (?<near>\'.+\')|$))'
2021

2122
errorStream: 'stderr'
2223

23-
regexFlags: 's'
24-
2524
constructor: (editor) ->
2625
super(editor)
2726

0 commit comments

Comments
 (0)