fix: adjust binary detection threshold to properly classify random data as binary

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-11 13:21:58 -03:00
parent ab7dc4c34f
commit ab48d19dcd

View File

@@ -72,7 +72,7 @@ impl BinaryMetaPlugin {
} }
// Final fallback: check printable character ratio // Final fallback: check printable character ratio
Self::calculate_printable_ratio(data) < 0.3 Self::calculate_printable_ratio(data) < 0.7
} }
/// Check for known binary file signatures /// Check for known binary file signatures