fix -name not returning the same character

This commit is contained in:
Every2
2025-03-20 20:31:08 -03:00
committed by Sylvestre Ledru
parent 5d264c9c7b
commit 6d366cbbda
+3
View File
@@ -23,6 +23,9 @@ impl NameMatcher {
impl Matcher for NameMatcher {
fn matches(&self, file_info: &WalkEntry, _: &mut MatcherIO) -> bool {
let name = file_info.file_name().to_string_lossy();
if name.contains('/') {
return true;
}
self.pattern.matches(&name)
}
}