From 9b6823885a74716a80e8f47a25cad7749c23c71d Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Wed, 21 Oct 2015 10:04:22 -0700 Subject: [PATCH] fix email validation fixes https://github.com/nylas/N1/issues/111 --- src/regexp-utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp-utils.coffee b/src/regexp-utils.coffee index 58a370d8a..495fcc2b1 100644 --- a/src/regexp-utils.coffee +++ b/src/regexp-utils.coffee @@ -11,7 +11,7 @@ RegExpUtils = # See http://tools.ietf.org/html/rfc5322#section-3.4 and # https://tools.ietf.org/html/rfc6531 and # https://en.wikipedia.org/wiki/Email_address#Local_part - emailRegex: -> new RegExp(/([a-z.A-Z0-9%#_~$&*+;=:-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4})/g) + emailRegex: -> new RegExp(/([a-z.A-Z0-9%#_~$&*+;=:-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,63})/g) # https://regex101.com/r/zG7aW4/3 imageTagRegex: -> /]*src="([^"]*)"[^>]*>/g