From dacee6fb5792ff7b671e8dee855772606c91dfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Mon, 10 Jun 2024 17:00:50 -0700 Subject: [PATCH] version: add prerelease to unstable pattern --- nix_update/version/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix_update/version/__init__.py b/nix_update/version/__init__.py index 2fe8a08..11dcb71 100644 --- a/nix_update/version/__init__.py +++ b/nix_update/version/__init__.py @@ -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