From 46e79a9468ca88b51c1a8982b600f243ce0a6ffe Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 28 Mar 2022 18:16:33 +0200 Subject: handle missing closing bracket, remove blanks around email (filter_var balks) --- test/it_mail.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/it_mail.t b/test/it_mail.t index 8b9a316..7e892c2 100755 --- a/test/it_mail.t +++ b/test/it_mail.t @@ -95,10 +95,10 @@ is( ); is( - it_mail::address_error('neuman@example.com, , "Neuman, Alfred E." , aneuman'), + it_mail::address_error('neuman@example.com, , "Neuman, Alfred E." , aneuman, "" ', " neumann@example.com"), null, "Accept valid e-mail addresses" ); -foreach (['neuman@example', '"neuman@example.com" '] as $email) +foreach (['neuman@example', '"neuman@example.com" ', '