From 819dba26dd50043451fb54f7f00c4345ea43efb2 Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 16 Mar 2023 17:08:55 +0530 Subject: [PATCH] [apple] Fix regex to exclude non-macos releases This also drops 11.0 and 12.0, which is okay since the dates we have are technically for 11.0.1 and 12.0.1 anyway. --- src/apple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apple.py b/src/apple.py index ddb802fc..8c0a5802 100644 --- a/src/apple.py +++ b/src/apple.py @@ -23,7 +23,7 @@ URLS = [ CONFIG = { "macos": [ # This covers Sierra and beyond - r"macOS[\D]+(?P\d+(?:\.\d+)*)", + r"^macOS[\D]+(?P\d+(?:\.\d+)*)", # This covers Mavericks - El Capitan r"OS\s+X\s[\w\s]+\sv?(?P\d+(?:\.\d+)+)", # This covers even older versions (OS X)