forked from mirrors/kingfisher
Fixed tree-sitter scanning bug where passing --no-base64 caused errors to be printed when the file type couldn’t be determined
This commit is contained in:
parent
fecd05be03
commit
dbb97bdcf3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue