Case insensitive match for org file extension.

This commit is contained in:
Tom Alexander 2024-10-19 16:38:29 -04:00
parent c5621212bc
commit 8ab69e480e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ async fn filter_to_highest_folders_containing_org_files(
continue; continue;
} }
match entry.path().extension().and_then(OsStr::to_str) { match entry.path().extension().and_then(OsStr::to_str) {
Some("org") => { Some(ext) if ext.eq_ignore_ascii_case("org") => {
return Ok(WalkAction::HaltAndCapture); return Ok(WalkAction::HaltAndCapture);
} }
_ => {} _ => {}

View File

@ -46,6 +46,7 @@ pub(crate) enum WalkAction {
Halt, Halt,
/// Walk down this path and add it to the return list. /// Walk down this path and add it to the return list.
#[allow(dead_code)]
RecurseAndCapture, RecurseAndCapture,
/// Walk down this path but do not add it to the return list. /// Walk down this path but do not add it to the return list.