diff options
author | Ava Chow <github@achow101.com> | 2024-04-30 14:14:53 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-08-14 13:19:59 -0400 |
commit | d5a8c4c4bd76f296f4d744184dc80a6a6a0731bd (patch) | |
tree | 61ec5cee4f79cdc00f430179a2e05c4e28b69c5c /contrib | |
parent | 0a379a129b4a14fc6d286511f7509880d82f4ee5 (diff) |
makeseeds: Update user agent regex
Update the user agent regex to match all 3 digits of the version number,
not just the first 2 digits.
Also updates it to include 24.2, 25.2, 26.1, 27.0, 27.1, 27.99, 28.0 and
28.99.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/seeds/makeseeds.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/seeds/makeseeds.py b/contrib/seeds/makeseeds.py index 7fd0f7158e..80366e6ddd 100755 --- a/contrib/seeds/makeseeds.py +++ b/contrib/seeds/makeseeds.py @@ -41,11 +41,13 @@ PATTERN_AGENT = re.compile( r"0.19.(0|1|2|99)|" r"0.20.(0|1|2|99)|" r"0.21.(0|1|2|99)|" - r"22.(0|1|99)|" - r"23.(0|1|99)|" - r"24.(0|1|99)|" - r"25.(0|1|99)|" - r"26.(0|99)|" + r"22.(0|1|99).0|" + r"23.(0|1|99).0|" + r"24.(0|1|2|99).(0|1)|" + r"25.(0|1|2|99).0|" + r"26.(0|1|99).0|" + r"27.(0|1|99).0|" + r"28.(0|99).0|" r")") def parseline(line: str) -> Union[dict, None]: |