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 authored and mergify[bot] committed Jun 11, 2024
1 parent adf2389 commit dacee6f
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 @@ -72,7 +72,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 dacee6f

Please sign in to comment.