From c73e6b30246574c964601d551efa97c88f505b39 Mon Sep 17 00:00:00 2001 From: Gene Hightower Date: Wed, 25 Aug 2021 19:21:09 -0700 Subject: [PATCH] New test case for quotes causeing words in the display-name to run together --- test/email-addresses.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/email-addresses.js b/test/email-addresses.js index 6846be7..6f7c303 100644 --- a/test/email-addresses.js +++ b/test/email-addresses.js @@ -185,6 +185,11 @@ test("display-name semantic interpretation", function (t) { "\"First Last\"", "surrounding quotes are not semantic"); + check( + "First \"Middle\" Last ", + "surrounding quotes should not run words together", + "First Middle Last"); + check( " \t \"First Last\" ", "surrounding quotes are not semantic and whitespace is collapsed");