Skip to content

Commit

Permalink
fix: match default vanilla release without patch
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jul 22, 2024
1 parent 5354fa7 commit 87189c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion beet/contrib/vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ def __init__(
self.manifest = manifest

def missing(self, key: str) -> Release:
pattern = re.compile("^" + r"\d+".join(map(re.escape, key.split("*"))) + "$")
pattern = re.compile(
"^"
"|".join(
r"\d+".join(map(re.escape, k.split("*")))
for k in {key, key.removesuffix(".*")}
)
+ "$"
)
for version in self.manifest.data["versions"]:
if pattern.match(version["id"]):
info = JsonFile(source_path=self.cache.download(version["url"]))
Expand Down

0 comments on commit 87189c4

Please sign in to comment.