Skip to content

Commit 7c89707

Browse files
committed
fix(problem_matcher): correct regex for when pylint content is not available
ref: #6
1 parent f10663a commit 7c89707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/usr/bin/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def pylint_matcher( entry ) -> dict:
144144
r'"description":\s*"(?P<description>[^"]+)",\s*'
145145
r'"fingerprint":\s*"(?P<fingerprint>[^"]+)",\s*'
146146
r'"location":\s*\{\s*"path":\s*"(?P<path>[^"]+)".+?'
147-
r'"line[s]?":.+?(?P<line>\d+).*?\}},'
148-
r'(?:\s"content":\s\{"body":\s"(?P<body>.+?)")?'
147+
r'"line[s]?":.+?(?P<line>\d+).*?\}}'
148+
r'(?:,\s"content":\s\{"body":\s"(?P<body>.+?)")?'
149149
)
150150
}
151151

0 commit comments

Comments
 (0)