Skip to content

Commit 1f73c32

Browse files
authored
bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)
1 parent 23c5f93 commit 1f73c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/msi/purge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from urllib.request import *
1414

15-
VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)(\w+\d+)?$')
15+
VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)([A-Za-z_]+\d+)?$')
1616

1717
try:
1818
m = VERSION_RE.match(sys.argv[1])

0 commit comments

Comments
 (0)