dectection update.

This commit is contained in:
shiva108 committed 2026-01-26 13:35:22 +01:00
1 parent 6432385796
commit bd4dc886d9
1 file changed
+4 -2
@@ -133,10 +133,12 @@ class PatternMatchingDetector(BaseDetector):
evidence.append(f"Matched: '{pattern}'")
# High confidence for explicit indicators
if any(re.search(hc, pattern, re.IGNORECASE) for hc in high_confidence_patterns):
# Check if this pattern is in the high-confidence list
is_high_confidence = pattern in high_confidence_patterns
if is_high_confidence:
max_confidence = max(max_confidence, 0.9)
else:
max_confidence = max(max_confidence, 0.6)
max_confidence = max(max_confidence, 0.7)
# Boost confidence for multiple matches
if len(matched) >= 3: