diff options
author | Yash Shete <universeyash4@gmail.com> | 2020-11-09 17:38:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 17:38:09 (GMT) |
commit | 1f73c320e2921605c4963e202f6bdac1ef18f2ce (patch) | |
tree | c7f5b2c3e31f6f4615345101478f87d809afd154 /Tools/msi | |
parent | 23c5f93b83f78f295313e137011edb18b24c37c2 (diff) | |
download | cpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.zip cpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.tar.gz cpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.tar.bz2 |
bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)
Diffstat (limited to 'Tools/msi')
-rw-r--r-- | Tools/msi/purge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/msi/purge.py b/Tools/msi/purge.py index a8b8f4d..27b6b05 100644 --- a/Tools/msi/purge.py +++ b/Tools/msi/purge.py @@ -12,7 +12,7 @@ import sys from urllib.request import * -VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)(\w+\d+)?$') +VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)([A-Za-z_]+\d+)?$') try: m = VERSION_RE.match(sys.argv[1]) |