From ec9304fdc50e38dcc3cb16aad2c4a9edaca031d2 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 12 Jul 2025 23:04:01 +0930 Subject: [PATCH] fix(problem_matcher): correct regex for when pylint content is not available ref: #6 --- includes/usr/bin/annotations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/usr/bin/annotations.py b/includes/usr/bin/annotations.py index 2b3383a..431e218 100755 --- a/includes/usr/bin/annotations.py +++ b/includes/usr/bin/annotations.py @@ -144,8 +144,8 @@ regex = { r'"description":\s*"(?P[^"]+)",\s*' r'"fingerprint":\s*"(?P[^"]+)",\s*' r'"location":\s*\{\s*"path":\s*"(?P[^"]+)".+?' - r'"line[s]?":.+?(?P\d+).*?\}},' - r'(?:\s"content":\s\{"body":\s"(?P.+?)")?' + r'"line[s]?":.+?(?P\d+).*?\}}' + r'(?:,\s"content":\s\{"body":\s"(?P.+?)")?' ) }