Skip to content

Commit

Permalink
version: add prerelease to unstable pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Jun 11, 2024
1 parent 19f9683 commit b6d95ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix_update/version/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def extract_version(version: Version, version_regex: str) -> Version | None:
def is_unstable(version: Version, extracted: str) -> bool:
if version.prerelease is not None:
return version.prerelease
pattern = "rc|alpha|beta|preview|nightly|m[0-9]+"
pattern = "rc|alpha|beta|preview|nightly|prerelease|m[0-9]+"
return re.search(pattern, extracted, re.IGNORECASE) is not None


Expand Down

0 comments on commit b6d95ba

Please sign in to comment.