Skip to content

Instantly share code, notes, and snippets.

@Igor-Lopes
Created June 13, 2018 12:58
Show Gist options
  • Save Igor-Lopes/2a2f4aa018e5d3e3d49b2d08024c45e0 to your computer and use it in GitHub Desktop.
Save Igor-Lopes/2a2f4aa018e5d3e3d49b2d08024c45e0 to your computer and use it in GitHub Desktop.
Regex for nyc code coverage in Gitlab CI

All files\s*\|\s*([0-9.]+)

@dquist
Copy link

dquist commented Jan 29, 2019

Works great, thanks

@aarowman
Copy link

aarowman commented Dec 7, 2020

See https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/24782 . A slightly more inclusive one would be:

All files[^|]*\|[^|]*\s+([\d\.]+)

Here is an example of the regex working:
https://regex101.com/r/A2oIXf/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment