We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 066f456 + 770e9dc commit f554d62Copy full SHA for f554d62
misc.go
@@ -81,7 +81,7 @@ func ParseList(value string) []string {
81
func ParsePairs(value string) map[string]string {
82
m := make(map[string]string)
83
for _, pair := range ParseList(strings.TrimSpace(value)) {
84
- if i := strings.Index(pair, "="); i < 0 {
+ if i := strings.Index(pair, "="); i < 0 || i == len(pair)-1{
85
m[pair] = ""
86
} else {
87
v := pair[i+1:]
0 commit comments