Commit graph

14 commits

Author SHA1 Message Date
Masaaki Goshima
89a66008de
Fix encoding of string that contains "- " (#657)
* fix encoding of string that contains "- "

* fix test case
2025-02-15 12:00:39 +09:00
Shuhei Kitagawa
61bc6c1078
Quote the numbers even if they are out of range (#593)
* Quote the numbers even if they are out of range

https://github.com/goccy/go-yaml/issues/586

* Keep the original interface of the ToNumber function
2024-12-16 18:53:32 +09:00
Shuhei Kitagawa
83d3e55c24
Fix quotation for timestamps (#515)
Co-authored-by: shuheiktgw <s-kitagawa@mercari.com>
2024-12-12 18:05:46 +09:00
Denis
e77cb4d27a
Fix "null" string encoded as nil (#474) 2024-10-28 11:34:02 +09:00
ozraru
680ea24289
Fix handle of space at start or last (#376) 2023-09-14 12:36:25 +09:00
David Fernandez
9a80dbc79c
fix: quote strings starting with @ (#339) 2023-03-28 17:59:34 +09:00
Yusuke Kuoka
f3319d6c80
Quote YAML 1.1 bools at encoding time for compatibility with other legacy parsers (#354) 2023-03-14 15:24:34 +09:00
Masaaki Goshima
560f570250 Fix origin buffer for DocumentHeader and DocumentEnd and Directive 2021-03-01 19:15:44 +09:00
Masaaki Goshima
34ea53181d Fix encoding for quoted string 2020-08-27 16:35:41 +09:00
Masaaki Goshima
7e8606c4f5 Add test case for token package 2019-10-30 17:04:22 +09:00
Masaaki Goshima
504f2633ca Add test cases for token package 2019-10-29 21:04:59 +09:00
Masaaki Goshima
5e018028b7 Add document for token package 2019-10-21 02:26:45 +09:00
Masaaki Goshima
4425c92abc Improve coverage for token package 2019-10-21 01:12:02 +09:00
Masaaki Goshima
df57b06aa0 Add token package 2019-10-16 18:19:15 +09:00