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

Fix number validation to handle leading and trailing decimal #230

Closed
wants to merge 1 commit into from

Conversation

shipstar
Copy link

@shipstar shipstar commented Jun 5, 2014

.01 and 123. are both parsed by JavaScript as valid floats. These minor regex tweaks should allow backbone.validation to handle them as well.

Fixes #103.

@chiefGui
Copy link
Collaborator

Did you ran your tests to be sure things are working?

@shipstar
Copy link
Author

I believe I ran the tests when I wrote the code, but it's been a while! I'll take a look tomorrow night to confirm.

On Wed, Jan 14, 2015 at 4:03 PM, Guilherme Oderdenge
[email protected] wrote:

Did you ran your tests to be sure things are working?

Reply to this email directly or view it on GitHub:
#230 (comment)

@chiefGui
Copy link
Collaborator

Yes, it's been a while man — sorry for that.

I'll be waiting your test-check and if passes well, we'll be merging this fix.

Thank you so far! 👍

@shipstar
Copy link
Author

I think I got everything reconfigured correctly. Looks like tests are passing for me:

screen shot 2015-01-18 at 10 04 33 am

Let me know if there's anything else I can do to help out.

@platinumazure
Copy link

@shipstar From my taking a quick look, the tests look good. That said, it seems there are merge issues. @chiefGui Can collaborators handle merge conflicts or should the pull request be updated?

@chiefGui
Copy link
Collaborator

chiefGui commented Feb 4, 2015

@platinumazure If you want to update this PR, just fork from https://github.com/shipstar/backbone.validation and then create a new PR, this way you can reuse @shipstar's work.

@shipstar We need another update to be compatible with our latest release. If you want, you can do — but I think you're uninterested because you're not using Backbone.Validation anymore. Anyway, you should to know your PR is very useful for us. Thanks for now, man. 👍

blikblum pushed a commit to blikblum/backbone.validation that referenced this pull request Apr 21, 2018
@shipstar
Copy link
Author

shipstar commented May 1, 2020

Given that this PR is now 5 years old, I'm guessing it's far enough out of date that it shouldn't remain open. I'm going to close just to prune my PR list in GitHub, but I hope this was useful to someone else!

@shipstar shipstar closed this May 1, 2020
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.

Number pattern does not match decimals without a leading numeric value.
3 participants