Signed-off-by: Jo-Philipp Wich <jo@mein.io>
types: {
integer: function() {
- return this.assert(this.factory.parseInteger(this.value) !== NaN, _('valid integer value'));
+ return this.assert(!isNaN(this.factory.parseInteger(this.value)), _('valid integer value'));
},
uinteger: function() {
},
float: function() {
- return this.assert(this.factory.parseDecimal(this.value) !== NaN, _('valid decimal value'));
+ return this.assert(!isNaN(this.factory.parseDecimal(this.value)), _('valid decimal value'));
},
ufloat: function() {