[Homebrew] Add homebrew downloads badge (#6209)
* Add homebrew downloads badge
This commit is contained in:
committed by
GitHub
parent
1adfbe4f88
commit
322eafd5ac
@@ -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]*%$/)
|
||||
|
||||
Reference in New Issue
Block a user