nature-of-code / Nature-of-Code-Website-Archive

Repo for web files for nature of code
https://noc-processing-archive.netlify.app/
111 stars 21 forks source link

E-mail validation regex #1

Closed shiffman closed 12 years ago

shiffman commented 12 years ago

I removed

    /*if($('#order-email').val().match(/\S+@\S+\.[a-zA-Z]+^/)) {

    } else {
      $('#payment-errors').text("Please enter an email address.");
      return false;
    }*/

The regex was blocking all e-mails buying for $0. I could fix it or put it back in but sort of feel like if you are buying it for $0 and mistype your e-mail. Well just buy it again?

stevenklise commented 12 years ago

Must have been a paste from clipboard of the wrong regex. Fixed now and simplified.

Issue closed with commit 960a152