Skip to content
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

Numbers starting with dot should be accepted #21

Closed
efreibe opened this issue Apr 25, 2019 · 1 comment
Closed

Numbers starting with dot should be accepted #21

efreibe opened this issue Apr 25, 2019 · 1 comment

Comments

@efreibe
Copy link

efreibe commented Apr 25, 2019

Hello, I think that numbers with format like .123 should be accepted as a valid number.
A lot of users are accustomed to write like that in input boxes.

See this example I took from chrome:

image

Even empty string is returning an exception but this is a valid number zero.

@a14n a14n closed this as completed in 69fcdd4 Apr 25, 2019
@a14n
Copy link
Owner

a14n commented Apr 25, 2019

Thanks for the report. I agree as it's accepted by double.parse.

Fix available in 0.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants