Closed astefanova closed 6 years ago
Thanks for your small test data. It is come from the library of yaml https://github.com/go-yaml/yaml I have checked that the master version of https://github.com/go-yaml/yaml do not have this bug.
This issues is fixed and add a test to ensure it will be fixed in the future. Thanks for your report again.
https://github.com/bronze1man/yaml2json/blob/master/y2jLib/lib_test.go#L24
It seems the issue is only reproducible for certain strings. The pattern \<number>\<string>\<underscore>\<number> is faulty. There may be more.
See: