You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current number pattern used by Backbone.Validation is /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.
Here are some tests which prove that it does not work as expected.
When binding to a View, such as a form, it's common for users to enter decimals without leading zeros. This current pattern does not sufficiently accomodate that, and puts the burden on developers to handle it.
The text was updated successfully, but these errors were encountered:
The current number pattern used by
Backbone.Validation
is/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/
.Here are some tests which prove that it does not work as expected.
JavaScript treats these the same, however:
When binding to a View, such as a form, it's common for users to enter decimals without leading zeros. This current pattern does not sufficiently accomodate that, and puts the burden on developers to handle it.
The text was updated successfully, but these errors were encountered: