1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-24 14:24:20 +01:00
homework/shared/utils.coffee
2014-05-30 08:27:49 +02:00

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