-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse does not properly handle floats of the form ".8" #144
Comments
Huh. You're right. I'm truly rather surprised that this hasn't been noticed before. Will fix ASAP. Also, the trickier problem that this has surfaced for me is that I notice that the official YAML 1.1 > YAML.parse('.', { version: '1.1' })
NaN To be clear, that's entirely separate from this issue, but now I'm conflicted about what the right thing might be, to follow the spec (as we currently do), or "fix" the expression. :/ |
This regexp is a bit strange IMO: |
🤦♂️Yes, it is. |
Thanks for the quick responses! |
Here, the value of
foo
should be the number0.8
instead of the string'.8'
.The 1.1 schema does work properly:
The text was updated successfully, but these errors were encountered: