From c91ef6cd6d1b2332b18c15017b2a8dc13cc1a391 Mon Sep 17 00:00:00 2001
From: Paul Becotte <pjbecotte@gmail.com>
Date: Mon, 22 Jul 2019 14:32:23 +0000
Subject: [PATCH] The python regex fails if you add branch coverage to the
 report (different number of digit blocks). Don't think there's any downside
 in handling any number of digit blocks so long as it starts with TOTAL and
 ends with a percentage.

---
 app/views/projects/settings/ci_cd/_form.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/projects/settings/ci_cd/_form.html.haml b/app/views/projects/settings/ci_cd/_form.html.haml
index 2d108a1cba5..498a9744783 100644
--- a/app/views/projects/settings/ci_cd/_form.html.haml
+++ b/app/views/projects/settings/ci_cd/_form.html.haml
@@ -99,7 +99,7 @@
                 %code \(\d+.\d+\%\) covered
               %li
                 pytest-cov (Python) -
-                %code ^TOTAL\s+\d+\s+\d+\s+(\d+\%)$
+                %code ^TOTAL.+?(\d+\%)$
               %li
                 phpunit --coverage-text --colors=never (PHP) -
                 %code ^\s*Lines:\s*\d+.\d+\%
-- 
2.30.9