Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (m *StringMap) String() string {
}
sort.Strings(keys)
for _, key := range keys {
buffer.WriteString(fmt.Sprintf(`"%s=%s", `, key, m.m[key]))
fmt.Fprintf(&buffer, `"%s=%s", `, key, m.m[key])
}
Comment on lines 187 to 189
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The raw string passed to fmt.Fprintf is now \"%s=%s\", , which will output literal backslashes (e.g., "key=value") instead of quoting with ". Since this is a raw string literal (backticks), the quotes don’t need escaping—use "%s=%s", without the backslashes to preserve the previous output format.

Copilot uses AI. Check for mistakes.
return strings.Trim(buffer.String(), ", ")
}
Expand Down
Loading