Skip to content

Commit 05d6f56

Browse files
authored
Merge pull request #56 from TeaEntityLab/alert-autofix-33
Potential fix for code scanning alert no. 33: Bad HTML filtering regexp
2 parents 655fea1 + ee51533 commit 05d6f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

teaagent/spec_grounding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
_BRACKET_PATH = re.compile(r'\[([^\]]+)\]\(([^)]+)\)')
2828
_PLAIN_PATH = re.compile(r'(?<!\w)(?:\.\/|(?:\w+\/)+)[\w./-]+\.\w+(?!\w)')
2929

30-
_MARKER_COMMENT = re.compile(r'#\s|//\s|--\s|<!--|-->|\*/|"""', re.MULTILINE)
30+
_MARKER_COMMENT = re.compile(r'#\s|//\s|--\s|<!--|--!?>|\*/|"""', re.MULTILINE)
3131

3232

3333
def _is_likely_path(raw: str) -> bool:

0 commit comments

Comments
 (0)