From 1f73c320e2921605c4963e202f6bdac1ef18f2ce Mon Sep 17 00:00:00 2001 From: Yash Shete Date: Mon, 9 Nov 2020 23:08:09 +0530 Subject: [PATCH] bpo-41712: Avoid runaway regex match in upload scripts (GH-23166) --- Tools/msi/purge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/msi/purge.py b/Tools/msi/purge.py index a8b8f4d8973..27b6b054a44 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])