Skip to content

Commit 9261dbc

Browse files
Pixmewadorilson
authored andcommitted
bpo-41712: Avoid runaway regex match in upload scripts (pythonGH-23166)
1 parent 07fffe2 commit 9261dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)