[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.
This commit is contained in:
Robin Laurén
2023-02-17 22:00:56 +02:00
committed by GitHub
parent db7d139ef9
commit aed62e8f5e

View File

@@ -23,7 +23,7 @@ URLS = [
CONFIG = {
"macos": [
# This covers Sierra and beyond
r"macOS\s[\w\s]+\s(?P<version>\d+(?:\.\d+)*)",
r"macOS[\D]+(?P<version>\d+(?:\.\d+)*)",
# This covers Mavericks - El Capitan
r"OS\s+X\s[\w\s]+\sv?(?P<version>\d+(?:\.\d+)+)",
# This covers even older versions (OS X)