From ee515334d8a3c78836bd796634c9cdc755353b37 Mon Sep 17 00:00:00 2001 From: John Lee Date: Fri, 5 Jun 2026 23:27:00 +0800 Subject: [PATCH] Potential fix for code scanning alert no. 33: Bad HTML filtering regexp Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- teaagent/spec_grounding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teaagent/spec_grounding.py b/teaagent/spec_grounding.py index 99a45433..84c3e772 100644 --- a/teaagent/spec_grounding.py +++ b/teaagent/spec_grounding.py @@ -27,7 +27,7 @@ _BRACKET_PATH = re.compile(r'\[([^\]]+)\]\(([^)]+)\)') _PLAIN_PATH = re.compile(r'(?|\*/|"""', re.MULTILINE) +_MARKER_COMMENT = re.compile(r'#\s|//\s|--\s|