Skip to content

Commit 43f6771

Browse files
authored
Update regex to include filename capture group. (#43)
Update regex to include filename capture group.
2 parents aa70280 + 43d14f7 commit 43f6771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class Tslint(NodeLinter):
1212
r'(ERROR:\s+\((?P<error>.*)\))|'
1313
r'(WARNING:\s+\((?P<warning>.*)\))'
1414
r')?'
15-
r'.+?\[(?P<line>\d+), (?P<col>\d+)\]: '
15+
r'\s+(?P<filename>.+?)'
16+
r'\[(?P<line>\d+), (?P<col>\d+)\]: '
1617
r'(?P<message>.+)'
1718
)
1819
tempfile_suffix = '-'

0 commit comments

Comments
 (0)