You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed sometimes it stays as a string depending on the structure of the document or the presence of comments but this is the simplest example that reproduces the issue I've been seeing. A pretty big one.
Fixesmohsen1#78. This also fixes numbers larger than
Number.MAX_SAFE_INTEGER represented as strings being rounded
when the yaml is loaded and serialized again.
Causes a slight regression with the styling of string values.
Specifically, any strings that are modified in the JSON are quoted
in the resulting yaml, even if they weren't in the original.
Start out with this YAML file
Edit the JSON to change the timer value to "1001"
Expected result:
Actual result:
As you can see, the string turned into an integer
I noticed sometimes it stays as a string depending on the structure of the document or the presence of comments but this is the simplest example that reproduces the issue I've been seeing. A pretty big one.
You can see it happening on the demo site too:
https://azimi.me/yawn-yaml/demo/index.html
The text was updated successfully, but these errors were encountered: