Merge pull request #702 from adamharrison/fix-project-ignores

Used basenames for ignore_files rather than full paths.
This commit is contained in:
Adam 2021-11-27 14:33:03 -05:00 committed by GitHub
commit 7b82d787c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ local function get_project_file_info(root, file)
if info then
info.filename = strip_leading_path(file)
return (info.size < config.file_size_limit * 1e6 and
not common.match_pattern(info.filename, config.ignore_files)
not common.match_pattern(common.basename(info.filename), config.ignore_files)
and info)
end
end