adopted-ember-addons / ember-validators

A collection of EmberJS validators
Other
25 stars 40 forks source link

[BUG] Invalidate NaN in a number-typed range #107

Closed frykten closed 2 years ago

frykten commented 3 years ago

As stated in this issue, https://github.com/offirgolan/ember-validators/issues/106, I was bringing up the fact NaN is a valid number in a range for the inclusion validator, which I don't think is supposed to happen.

Here's my take on it. It still works in the option "in", instead of the option "range" and doesn't break a range of strings either.