1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From 83f8306117115729ac9346523762c0c396251eb5 Mon Sep 17 00:00:00 2001
From: Ricardo Signes <rjbs@cpan.org>
Date: Tue, 17 Jun 2014 22:48:03 -0400
Subject: [PATCH 8/8] quoted part can be empty
---
lib/Email/Address.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Email/Address.pm b/lib/Email/Address.pm
index acece12..1e0feb8 100644
--- a/lib/Email/Address.pm
+++ b/lib/Email/Address.pm
@@ -51,7 +51,7 @@ my $dot_atom = qr/$cfws*$dot_atom_text$cfws*/;
my $qtext = qr/[^\\"]/;
my $qcontent = qr/$qtext|$quoted_pair/;
-my $quoted_string = qr/$cfws*"$qcontent+"$cfws*/;
+my $quoted_string = qr/$cfws*"$qcontent*"$cfws*/;
my $word = qr/$atom|$quoted_string/;
--
2.0.0
|