mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
fix -name not returning the same character
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user