git.iko.soy/typeable/email-validate-extra
on master help sign in
[SSO-391] Split get_user_info API (#5967)
commit4e8aca863e56c40423dac56d5321061dd8cc3c78 authorUladzimir Stsepchanka <st.uladzimir@protonmail.com> dateThu 29 Apr 2021, 12:36 (5 years ago) parente29bb71
1 file changed+2−2
src/Text/Email/Extra.hs+2−2
src/Text/Email/Extra.hs+2−2
@@ -52,7 +52,7 @@ none f = not . any f
5252
5353instance Arbitrary EmailAddress where
5454 arbitrary = do
55− s <- listOf1 (elements $ ['a'..'z'] <> ['A'..'Z'] <> ['0'..'9'])
55+ s <- take 64 <$> listOf1 (elements $ ['a'..'z'] <> ['A'..'Z'] <> ['0'..'9'])
5656 return $ Email.unsafeEmailAddress (ByteString.pack s) "example.com"
5757 -- FIXME: write the correct instance
5858 -- arbitrary = do
@@ -72,4 +72,4 @@ instance Arbitrary EmailAddress where
7272 -- -- no subdomains
7373 -- domain <- replicateM n (elements ['a'..'Z'])
7474 -- domainLiteral <- elements ["com", "travel", "net", "ru", "io"]
75− -- unsafeEmailAddress <$> local <*> domain <> "." domainLiteral
75+ -- unsafeEmailAddress <$> local <*> domain <> "." domainLiteral