Commit Graph

7 Commits

Author SHA1 Message Date
Robin Laurén
aed62e8f5e [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.
2023-02-17 21:00:56 +01:00
Marc Wrobel
1e45de3c58 [macOS] Accept all kind of spaces in regexes (fixes #47)
There were two issues with the macOS regexes:

- The regexex accepted only spaces separator. But non-breakable spaces are also used from time to time. Replacing spaces by \s fixed the issue (other product regexes were also updated - never know).
- The first regex, the one that accepted major releases with no minor version, were not useful (covered by the second regex) and partly catched valid versions (such as 13.1), who was then ignored. I removed it.
2022-12-20 15:25:55 +05:30
Marc Wrobel
b65b5ad4ee Cleanup code (#37)
* [apple,distrowatch,pypi] Remove unused imports

* [maven] use snake_case for variable names

* [eks,palo-alto-networks] Rename variables shadowing names from outer scopes

* [eks,palo-alto-networks] Remove unused variables

* [apple,haproxy,palo-alto-networks,rhel,ros,unrealircd] Rename variables shadowing built-in names
2022-12-14 09:20:45 +05:30
Nemo
92864aab8b [apple] Update Mac regex to support Ventura
No dots in the version number was tripping the regex
2022-11-08 16:56:12 +05:30
Nemo
fac9620241 [py] Fix styling 2022-10-17 14:21:36 +05:30
Nemo
8e31ed037d Fix release dates for old apple releases
Some dates with 4 character months weren't parsing correctly
2022-06-02 18:58:11 +05:30
Nemo
ea0306b95a Track Apple OS releases (#5) 2022-06-02 09:03:42 +00:00