Use fresh vendor

This commit is contained in:
nordicdyno
2017-02-08 12:08:03 +03:00
parent 278a93887b
commit 111f5d103e
50 changed files with 2334 additions and 3394 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)
}
}