1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-26 14:44:20 +01:00
homework/shared/utils.coffee

6 lines
211 B
CoffeeScript
Raw Normal View History

2014-05-30 08:27:49 +02:00
# 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