jQuery-iMask
jQuery-iMask copied to clipboard
"groupDigits: 0" error
given the option "groupDigits: 0", the browser does not seem to operate.
The following code put "groupSymbols" comment next, solved the problem.
if (this.options.groupDigits> 0) { var re = new RegExp ("(\ \ d +) (\ \ d {" + this.options.groupDigits + "})"); while (re.test (str1)) { str1 = str1.replace (re, "$ 1" + this.options.groupSymbol + "$ 2"); } }
This is all right?