Commit 05e0b6d0 authored by Jared Szechy's avatar Jared Szechy

Fix build coverage regex matching to allow captures.

Fixes #2644
parent 61a1bdd7
......@@ -170,7 +170,7 @@ module Ci
def extract_coverage(text, regex)
begin
matches = text.gsub(Regexp.new(regex)).to_a.last
matches = regex.match(text).to_a.last
coverage = matches.gsub(/\d+(\.\d+)?/).first
if coverage.present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment