mirror of
https://github.com/fazo96/homework.git
synced 2025-01-26 14:44:20 +01:00
6 lines
237 B
CoffeeScript
6 lines
237 B
CoffeeScript
# Utility Stuff for Homework
|
|
|
|
validateEmail = (email) ->
|
|
re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
re.test email
|