Permalink
Browse files

indentation

  • Loading branch information...
johnny committed Jul 23, 2012
1 parent bffcc06 commit 784fc5071468eff59b2e715626eed21c95b23eaa
Showing with 5 additions and 5 deletions.
  1. +5 −5 source/javascripts/plugins/isValid.js
@@ -39,12 +39,12 @@
//Check if it's empty or an invalid email
if(fieldValue === '') {
errorMsg = _('errorText') || opts.errorText;
- valid = false;
+ valid = false;
} else if($input.hasClass('email')) {
- if(!(/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/.test(fieldValue))) {
- errorMsg = _('emailErrorText') || opts.emailErrorText;
- valid = false;
- }
+ if(!(/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/.test(fieldValue))) {
+ errorMsg = _('emailErrorText') || opts.emailErrorText;
+ valid = false;
+ }
}
//If there is an error, display it

0 comments on commit 784fc50

Please sign in to comment.