mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: incorrect matching behavior of glob pattern with full paths
This commit is contained in:
parent
d56c8fd52a
commit
47e6fba677
2 changed files with 4 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ impl Pattern {
|
|||
pub fn matches(&self, str: impl AsRef<str>) -> bool {
|
||||
self.inner.matches_with(str.as_ref(), MatchOptions {
|
||||
case_sensitive: self.sensitive,
|
||||
require_literal_separator: false,
|
||||
require_literal_separator: self.full_path,
|
||||
require_literal_leading_dot: false,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,10 +24,12 @@ serde_json = "^1"
|
|||
syntect = "^5"
|
||||
tokio = { version = "^1", features = [ "parking_lot", "macros", "rt-multi-thread", "sync", "time", "fs", "process", "io-std", "io-util" ] }
|
||||
tokio-stream = "^0"
|
||||
tracing = "^0"
|
||||
trash = "^3"
|
||||
unicode-width = "^0"
|
||||
yazi-prebuild = "^0"
|
||||
|
||||
# Logging
|
||||
tracing = "^0"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
clipboard-win = "^4"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue