Skip to content

Commit

Permalink
Updated email regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
fergaldoyle committed Oct 25, 2015
1 parent 841543e commit f32b911
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-form",
"version": "0.1.1",
"version": "0.1.2",
"description": "Form validation for Vue.js",
"main": "vue-form.js",
"authors": ["Fergal Doyle"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-form",
"version": "0.1.1",
"version": "0.1.2",
"description": "Form validation for Vue.js",
"main": "vue-form.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion vue-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
el.className = (classes.join(" ")).trim();
}

var emailRegExp = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/,
var emailRegExp = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i, // from angular
urlRegExp = /^(http\:\/\/|https\:\/\/)(.{4,})$/,
dirtyClass = 'vf-dirty',
pristineClass = 'vf-pristine',
Expand Down
2 changes: 1 addition & 1 deletion vue-form.min.js

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

0 comments on commit f32b911

Please sign in to comment.