Describe the bug
When a + or - sign is placed before a number in hexadecimal format, an error occurs when MarshalJSON is called.
Version of yq: v4.53.2
Operating system: Manjaro Linux
Installed via: pacman (package manager)
Input Yaml
or
Command
The command you ran:
Actual behaviour
Error: json: error calling MarshalJSON for type *yqlib.CandidateNode: strconv.ParseInt: parsing "+0x12": invalid syntax
Expected behaviour
No error and show 18.
Describe the bug
When a
+or-sign is placed before a number in hexadecimal format, an error occurs when MarshalJSON is called.Version of yq: v4.53.2
Operating system: Manjaro Linux
Installed via: pacman (package manager)
Input Yaml
+0x12or
-0x12Command
The command you ran:
Actual behaviour
Expected behaviour
No error and show
18.