Update vendoring for github.com/prometheus/common/*

This commit is contained in:
Ben Kochie 2016-12-16 13:04:35 +01:00
commit 69ef3b6209
16 changed files with 295 additions and 282 deletions

View file

@ -160,7 +160,7 @@ func (l *LabelSet) UnmarshalJSON(b []byte) error {
// LabelName as a string and does not call its UnmarshalJSON method.
// Thus, we have to replicate the behavior here.
for ln := range m {
if !LabelNameRE.MatchString(string(ln)) {
if !ln.IsValid() {
return fmt.Errorf("%q is not a valid label name", ln)
}
}