jQuery-iMask
jQuery-iMask copied to clipboard
Sanity issue
Hey,
I think that this.sanityTest( this.domNode.value ); should be done on keyPress too, because in the current way it's not possible to limit the value of a number.
return Math.min( 1000000, Math.max(0, parseFloat( val.replace(/[^.\d]/g, ''))) will allow a number higher than 1000000
I second this one too.