Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdvr1993 committed Dec 5, 2023
1 parent d657b76 commit 903d51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baggage/baggage.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
keyValueDelimiter = "="
propertyDelimiter = ";"

// if you update these 2 values you must update the static implementation below: keyReValidator and valReValidator
// if you update these 2 values you must update the static implementation below: keyReValidator and valReValidator.
keyDef = `([\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5a\x5e-\x7a\x7c\x7e]+)`
valueDef = `([\x21\x23-\x2b\x2d-\x3a\x3c-\x5B\x5D-\x7e]*)`
keyValueDef = `\s*` + keyDef + `\s*` + keyValueDelimiter + `\s*` + valueDef + `\s*`
Expand Down Expand Up @@ -554,7 +554,7 @@ func (b Baggage) String() string {

// They must follow the following rules (regex syntax):
// keyDef = `([\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5a\x5e-\x7a\x7c\x7e]+)`
// valueDef = `([\x21\x23-\x2b\x2d-\x3a\x3c-\x5B\x5D-\x7e]*)`
// valueDef = `([\x21\x23-\x2b\x2d-\x3a\x3c-\x5B\x5D-\x7e]*)`.
type keyReValidator struct{}

func (keyReValidator) MatchString(s string) bool {
Expand Down

0 comments on commit 903d51c

Please sign in to comment.