From d5a8c4c4bd76f296f4d744184dc80a6a6a0731bd Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Tue, 30 Apr 2024 14:14:53 -0400 Subject: [PATCH] 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. --- contrib/seeds/makeseeds.py | 12 +++++++----- 1 file 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]: