Case insensitive match for org file extension.
This commit is contained in:
parent
c5621212bc
commit
8ab69e480e
@ -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);
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user