Skip to content

Commit

Permalink
fix: parse RuleMode::Directory from 'dir' as well as 'directory' (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-gaia authored Dec 4, 2024
1 parent 08d16b2 commit 4941c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enclosure/rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl FromStr for RuleMode {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"file" => Ok(RuleMode::File),
"directory" => Ok(RuleMode::Directory),
"directory" | "dir" => Ok(RuleMode::Directory),
_ => Err(format!("invalid rule mode: {}", s)),
}
}
Expand Down

0 comments on commit 4941c88

Please sign in to comment.