Browse files

Update regex

  • Loading branch information...
1 parent de897f8 commit a609c9ed816b4180ae724e67297694555027c225 @gangleton gangleton committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/js/application.js
View
2 public/js/application.js
@@ -2,7 +2,7 @@ $(document).ready(function(){
$('form').submit(function(e){
e.preventDefault();
var emailVal = $('input.email').attr('value');
- if(emailVal.match(/^[A-Z0-9]+@[A-Z0-9]+\.[A-Z0-9]+/i)){
+ if(emailVal.match(/^[A-Z0-9\.\-]+@[A-Z0-9]+\.[A-Z0-9]+/i)){
var formData = $(this).serialize();
$.post('/signup', formData, function(data, textStatus, jqXHR){
console.log(data);

0 comments on commit a609c9e

Please sign in to comment.