Browse Source

Merge pull request #112 from RobinHerbots/dev

Update js/jquery.inputmask.js
Robin Herbots 13 years ago
parent
commit
4429942bdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -534,7 +534,7 @@
                 if (!$input.is(":input")) return;
                 if (!$input.is(":input")) return;
 
 
       		//correct greedy setting if needed
       		//correct greedy setting if needed
-                opts.greedy = opts.greedy && opts.repeat > 0;
+                opts.greedy = opts.greedy ? opts.greedy : opts.repeat == 0;
 
 
                 //handle maxlength attribute
                 //handle maxlength attribute
                 var maxLength = $input.prop('maxLength');
                 var maxLength = $input.prop('maxLength');