functionfoundry
Advanced tools
Comparing version 0.6.12 to 0.6.13
{ | ||
"name": "functionfoundry", | ||
"version": "0.6.12", | ||
"version": "0.6.13", | ||
"description": "Functions inspired by the spreadsheets", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
export function ISEMAIL(email) { | ||
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; | ||
return re.test(email); | ||
// credit to http://stackoverflow.com/questions/46155/validate-email-address-in-javascript | ||
var 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,}))$/; | ||
return re.test(email); | ||
}; |
194270
223
5814