Skip to content
Browse files

fix on regexp masks :s, it was doing the oposite, my bad.

  • Loading branch information...
1 parent 509a1dd commit ee2f71f683ed8367fa71569a1222c1aafee1d6f9 @fabiomcosta committed Mar 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Meio.Mask.Regexp.js
View
2 Source/Meio.Mask.Regexp.js
@@ -36,7 +36,7 @@ Meio.Mask.Regexp = new Class({
var state = this.getCurrentState(e, o);
var args = [this.element, state._char, e.code];
- if (this.regex.test(state.value)){
+ if (!this.regex.test(state.value)){
this.fireEvent('invalid', args);
} else {
this.element.set('value', state.value).setCaretPosition(state.start + (o.isRemoveKey ? 0 : 1));

0 comments on commit ee2f71f

Please sign in to comment.
Something went wrong with that request. Please try again.