Skip to content

Large hex strings are unquoted when marshalled #586

@mcdee

Description

@mcdee

Describe the bug

Large hex strings are being encoded without quotes, and small hex strings are being encoded with quotes.

To Reproduce

https://go.dev/play/p/U1vXmvyBhLt

Expected behavior

Hex strings should remain quoted regardless of length.

Version Variables

  • Go version: 1.23.2
  • go-yaml's Version: 1.15.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingencoder

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions