File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const availableColorsReStr = '(:?' + availableColors.join('|') + ')'
40
40
function getCoverageRe ( ) {
41
41
// note, Shields.io escaped '-' with '--'
42
42
const coverageRe = new RegExp (
43
- `https://img\\.shields\\.io/badge/code--coverage-\ \d+%25-${ availableColorsReStr } ` ,
43
+ `https://img\\.shields\\.io/badge/code--coverage-[1-9]\d?|\d+\.? \d+%25-${ availableColorsReStr } ` ,
44
44
)
45
45
return coverageRe
46
46
}
@@ -71,7 +71,7 @@ function getCoverageFromReadme() {
71
71
const readmeText = fs . readFileSync ( readmeFilename , 'utf8' )
72
72
73
73
const coverageRe = new RegExp (
74
- `https://img\\.shields\\.io/badge/code--coverage-(\ \d+)%25-${ availableColorsReStr } ` ,
74
+ `https://img\\.shields\\.io/badge/code--coverage-([1-9]\d?|\d+\.? \d+)%25-${ availableColorsReStr } ` ,
75
75
)
76
76
const matches = coverageRe . exec ( readmeText )
77
77
You can’t perform that action at this time.
0 commit comments