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('|') + ')'
4040function getCoverageRe ( ) {
4141 // note, Shields.io escaped '-' with '--'
4242 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 } ` ,
4444 )
4545 return coverageRe
4646}
@@ -71,7 +71,7 @@ function getCoverageFromReadme() {
7171 const readmeText = fs . readFileSync ( readmeFilename , 'utf8' )
7272
7373 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 } ` ,
7575 )
7676 const matches = coverageRe . exec ( readmeText )
7777
You can’t perform that action at this time.
0 commit comments