bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)
This commit is contained in:
parent
23c5f93b83
commit
1f73c320e2
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue