Skip to content

Commit

Permalink
fix(config check): πŸ› config-specified negative pattern
Browse files Browse the repository at this point in the history
This was returning positive patterns from negative patterns specified in
the configuration. This is now fixed.
  • Loading branch information
xaf committed Jan 15, 2025
1 parent 76c80b3 commit 196d6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/config/parser/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn path_pattern_from_str(pattern: &str, location: Option<&str>) -> String {
|| pattern == "**"
|| pattern == "*"
{
return pattern.to_string();
return format!("{}{}", if negative { "!" } else { "" }, pattern);
}

// If we get here, convert into an absolute path
Expand Down

0 comments on commit 196d6b4

Please sign in to comment.