Expand regex for bench matching to include the format used by Demolito commits

This commit is contained in:
AndyGrant committed 2020-04-12 07:01:06 -04:00
1 parent eea87efd27
commit f24ebb7c2d
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ def getBranch(request, errors, name):
try:
message = data['commit']['message'].replace(',', '').upper()
bench = re.search('BENCH[ :=]+[0-9]+', message)
bench = re.search('(BENCH|NODES)[ :=]+[0-9]+', message)
if bench: bench = int(re.search('[0-9]+', bench.group()).group())
else: bench = int(request.POST['{0}bench'.format(name)])