jQuery-iMask icon indicating copy to clipboard operation
jQuery-iMask copied to clipboard

"groupDigits: 0" error

Open zepinos opened this issue 11 years ago • 0 comments

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?

zepinos avatar Mar 12 '14 07:03 zepinos