From dbb97bdcf30a02da867ce5f3e3a1725b58d5d858 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Wed, 8 Oct 2025 10:55:43 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20tree-sitter=20scanning=20bug=20where=20?= =?UTF-8?q?passing=20--no-base64=20caused=20errors=20to=20be=20printed=20w?= =?UTF-8?q?hen=20the=20file=20type=20couldn=E2=80=99t=20be=20determined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/matcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matcher.rs b/src/matcher.rs index 0b4f8a1..102820b 100644 --- a/src/matcher.rs +++ b/src/matcher.rs @@ -335,7 +335,7 @@ impl<'a> Matcher<'a> { let blob_len = blob.len(); - let should_run_tree_sitter = blob_len + let should_run_tree_sitter = blob_len > 0 && blob_len <= TREE_SITTER_MAX_LIMIT && blob_len >= TREE_SITTER_MIN_LIMIT && has_raw_matches