261028.3.1 · 23815624819c77ab665e19c8e6c28bddbcd96e1d
refactor: different pattern types
This significantly refactors the code for creating the regexes to match with, and in some cases avoids using regex altogether.
We now have differnt types of patterns that we match with.
One impact of this is that we now use GlobSet to match directly, which should fix #2067 and allow globs to work correctly in windows with --full-path.
reading declarations
Changes to src/config.rs. All files
@@ -12,9 +12,6 @@ use crate::fmt::FormatTemplate; /// Configuration options for *fd*. pub struct Config {- /// Whether the search is case-sensitive or case-insensitive.- pub case_sensitive: bool,- /// Cached current working directory for absolute path construction. /// Populated when `--full-path` is set; `None` means search by filename only. pub full_path_base: Option<PathBuf>,