This commit is contained in:
dracarys18 2026-06-07 01:27:51 +05:30
parent d6d225cf63
commit cecf758c3f
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -34,10 +34,7 @@ impl Dir<'_> {
}
pub fn is_exact_match(&self, keyword: &str) -> bool {
let last = Path::new(self.path.as_ref())
.file_name()
.and_then(|s| s.to_str())
.unwrap_or("");
let last = Path::new(self.path.as_ref()).file_name().and_then(|s| s.to_str()).unwrap_or("");
to_lowercase(last) == keyword
}
}