Skip to content

Commit

Permalink
Use regex match instead of string equality
Browse files Browse the repository at this point in the history
  • Loading branch information
jurre committed Aug 10, 2023
1 parent 6ae67de commit 3aae372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def ignore_conditions_table

# Filter out the conditions where from_config_file is false and dependency is in @dependencies
valid_ignore_conditions = @ignore_conditions.select do |ic|
ic["source"] == "@dependabot ignore command" && dependencies.any? { |dep| dep.name == ic["dependency-name"] }
ic["source"] == /\A@dependabot ignore/ && dependencies.any? { |dep| dep.name == ic["dependency-name"] }
end

# Return an empty string if no valid ignore conditions after filtering
Expand Down

0 comments on commit 3aae372

Please sign in to comment.