ucsb-cs56-projects / cs56-utilities-GoldScheduler

-
GNU General Public License v3.0
1 stars 1 forks source link

Email validation appears to only accept foo@bar.fum, but not foo@bar.fiddle.fum #9

Closed pconrad closed 8 years ago

pconrad commented 8 years ago

For example, foobar@umail.ucsb.edu would not be accepted. Only foobar@gmail.com or foobar@ucsb.edu, but not foobar@cs.ucsb.edu

That sucks. Fix it.

F16 OK (100 pts)

pconrad commented 8 years ago

Check out this line of code:

https://github.com/jamesy36/cs56-utilities-GoldScheduler/blob/master/src/GUI/CreateAccount.java#L136

pconrad commented 8 years ago

Also see: https://docs.oracle.com/javase/tutorial/essential/regex/

http://www.ocpsoft.org/opensource/guide-to-regular-expressions-in-java-part-1/

and google "java regular expressions"

Also try "regular expression java validate email address" :-)

Tektonbuilds commented 8 years ago

They completed this issue so this should also touch base on the 500 points they needed for the first half of the project.