Skip to content

Commit

Permalink
Fix issue about email validation when using capital letter at first c…
Browse files Browse the repository at this point in the history
…haracter.
  • Loading branch information
hsnaydd committed Nov 1, 2013
1 parent 2fa0316 commit 5e9caef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions validetta-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions validetta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Validetta - Client-side form validation jQuery plugin
* Version: 0.3.0 (28 October 2013)
* Version: 0.4.0 (01 November 2013)
* @jQuery Requires: v1.7 or above
* @Browser Support : ie8 or above, and all modern browsers
*
Expand All @@ -24,7 +24,7 @@
// RegExp for input validate rules
reg = new RegExp( /(minChecked|maxChecked|minSelected|maxSelected|minLength|maxLength|equal|customReg)\[[(\w)-_]{1,15}\]/i ),
// RegExp for mail control method
regMail = new RegExp( /^[a-z]{1}[\d\w\.-]+@[\d\w-]{3,}\.[\w]{2,3}(\.\w{2})?$/ ),
regMail = new RegExp( /^[a-zA-Z]{1}[\d\w\.-]+@[\d\w-]{3,}\.[\w]{2,3}(\.\w{2})?$/ ),
//RegExp for input number control method
regNumber = new RegExp( /^[\+][0-9]+?$|^[0-9]+?$/ );
/**
Expand Down

0 comments on commit 5e9caef

Please sign in to comment.