From ab48d19dcd15cbcfffb9250de78ecd2c7eb1ac83 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Mon, 11 Aug 2025 13:21:58 -0300 Subject: [PATCH] fix: adjust binary detection threshold to properly classify random data as binary Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/meta_plugin/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta_plugin/system.rs b/src/meta_plugin/system.rs index 447e25e..b1b2723 100644 --- a/src/meta_plugin/system.rs +++ b/src/meta_plugin/system.rs @@ -72,7 +72,7 @@ impl BinaryMetaPlugin { } // 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