bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)

This commit is contained in:
Yash Shete 2020-11-09 23:08:09 +05:30 committed by GitHub
parent 23c5f93b83
commit 1f73c320e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@
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])