Updates the regex to work with the current client version.
Fixes #524
The original pattern r"window\.__twilightBuildID=\"([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12})\";" didn't match because it strictly expected an exact format, including specific UUID segments and a trailing semicolon. The adjusted pattern r'window\.__twilightBuildID\s*=\s*"([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})"' is more flexible, allowing for optional whitespace around the equal sign and matching any valid UUID.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
I've ran it locally.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation (README.md)
[x] My changes generate no new warnings
[x] Any dependent changes have been updated in requirements.txt
Description
Updates the regex to work with the current client version.
Fixes #524
The original pattern
r"window\.__twilightBuildID=\"([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12})\";"
didn't match because it strictly expected an exact format, including specific UUID segments and a trailing semicolon. The adjusted patternr'window\.__twilightBuildID\s*=\s*"([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})"'
is more flexible, allowing for optional whitespace around the equal sign and matching any valid UUID.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I've ran it locally.
Checklist: