Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def ctx(start: int) -> str:
if file_type in ("markdown", "other"):
for pattern, confidence in P2_PATTERNS:
for match in re.finditer(pattern, content, re.IGNORECASE | re.DOTALL):
matched_str = match.group(0)
if any(p in matched_str.lower() for p in ["template:","theme:","coalmine:","revalidate"]): continue
if matched_str.startswith(chr(60)+chr(33)+chr(45)+chr(45)):
if not any(d in matched_str.lower() for d in ["ignore previous","system prompt","override instructions","you must","respond as"]): continue
line_num = get_line_number(content, match.start())
findings.append(
AnalyzerFinding(
Expand Down