MCPcopy Create free account
hub / github.com/prometheus/common / isValidLabelNameStart

Function isValidLabelNameStart

expfmt/text_parse.go:720–722  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

718}
719
720func isValidLabelNameStart(b byte) bool {
721 return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == '_'
722}
723
724func isValidLabelNameContinuation(b byte) bool {
725 return isValidLabelNameStart(b) || (b >= '0' && b <= '9')

Callers 3

readTokenAsLabelNameMethod · 0.85
isValidMetricNameStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected