mirror of
https://github.com/fazo96/homework.git
synced 2025-01-24 14:24:20 +01:00
6 lines
211 B
CoffeeScript
6 lines
211 B
CoffeeScript
# Utility functions for client and server - Homework
|
|
|
|
validateEmail = (email) ->
|
|
expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/
|
|
expr.test email
|