[Homebrew] Add homebrew downloads badge (#6209)

* Add homebrew downloads badge
This commit is contained in:
Dheepak Krishnamurthy
2021-02-22 13:30:14 -07:00
committed by GitHub
parent 1adfbe4f88
commit 322eafd5ac
5 changed files with 111 additions and 4 deletions

View File

@@ -73,10 +73,12 @@ const isMetricOverMetric = withRegex(
)
const isMetricOverTimePeriod = withRegex(
/^([1-9][0-9]*[kMGTPEZY]?|[1-9]\.[1-9][kMGTPEZY])\/(year|month|four weeks|week|day)$/
/^([1-9][0-9]*[kMGTPEZY]?|[1-9]\.[1-9][kMGTPEZY])\/(year|month|four weeks|quarter|week|day)$/
)
const isZeroOverTimePeriod = withRegex(/^0\/(year|month|four weeks|week|day)$/)
const isZeroOverTimePeriod = withRegex(
/^0\/(year|month|four weeks|quarter|week|day)$/
)
const isIntegerPercentage = withRegex(/^[1-9][0-9]?%|^100%|^0%$/)
const isDecimalPercentage = withRegex(/^[0-9]+\.[0-9]*%$/)