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
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import sys
from urllib.request import * 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: try:
m = VERSION_RE.match(sys.argv[1]) m = VERSION_RE.match(sys.argv[1])