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

Number validator: allow numbers starting with a point #236

Merged
merged 1 commit into from
Oct 18, 2013

Conversation

dgaviola
Copy link
Contributor

@dgaviola dgaviola commented Mar 1, 2013

It is very common that people write numbers starting with a point when 0 is on the left side. For example '.15' instead of '0.15'. Also, JavaScript is able to parse strings like '.15' to numbers without problems.

This small change allows those numbers to be valid.

@stevegreatrex stevegreatrex merged commit b91e535 into Knockout-Contrib:master Oct 18, 2013
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

Successfully merging this pull request may close these issues.

2 participants