Skip to content

Commit

Permalink
Fix recipes_of_specs() to use [a-z0-9-]+ as regex for recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardkaindl committed Oct 30, 2024
1 parent 9214f0f commit da7c904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def recipes_of_specs(specs: Strs) -> Strs:
"""Get the unique list of recipes from the specs."""
recipes = []
for spec in specs:
match = re.search(r"(\w+)", spec)
match = re.search(r"([a-z0-9-]+)", spec)
if match:
recipes.append(match.group(1))
return list(set(recipes))
Expand Down

0 comments on commit da7c904

Please sign in to comment.