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

No difference between number and decimal field validation rules #3060

Closed
andreyvk opened this issue Sep 18, 2015 · 3 comments
Closed

No difference between number and decimal field validation rules #3060

andreyvk opened this issue Sep 18, 2015 · 3 comments
Milestone

Comments

@andreyvk
Copy link

Hi,

Seems like there's no difference between number and decimal field validation rules.

For now it seems that the regular expression evaluating them is the same:

regExp: {
    . . .
    decimal : /^\-?\d*(\.\d+)?$/,
    number  : /^\-?\d*(\.\d+)?$/,
    . . .
},
@andreyvk andreyvk changed the title Difference between number and decimal field validation rules No difference between number and decimal field validation rules Sep 18, 2015
@jlukic jlukic added this to the 2.1.5 milestone Sep 18, 2015
@jlukic
Copy link
Member

jlukic commented Sep 18, 2015

Decimal should probably require a decimal. This came from a PR i didnt evaluate carefully enough i guess.

@andreyvk
Copy link
Author

I see now. Thanks!

@jlukic
Copy link
Member

jlukic commented Nov 1, 2015

Fixed

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

No branches or pull requests

2 participants