From aed62e8f5e2faf058ee5650e44118b0d53740e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Laur=C3=A9n?= Date: Fri, 17 Feb 2023 22:00:56 +0200 Subject: [PATCH] [apple] Fix regex for macOS Sierra and beyond (fixes #76) Apple changed the format or made a mistake for MacOS Ventura 13.2 : it is labeled 'MacOS 13.2.1' on https://support.apple.com/en-us/HT201222. --- src/apple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apple.py b/src/apple.py index 4f10c64c..ddb802fc 100644 --- a/src/apple.py +++ b/src/apple.py @@ -23,7 +23,7 @@ URLS = [ CONFIG = { "macos": [ # This covers Sierra and beyond - r"macOS\s[\w\s]+\s(?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)