Skip to content

Commit

Permalink
qcontent could be empty in quoted-string
Browse files Browse the repository at this point in the history
so "" is valid too.

rfc says:

    quoted-string   =       [CFWS]
                        DQUOTE *([FWS] qcontent) [FWS] DQUOTE
                        [CFWS]
  • Loading branch information
sunnavy committed Jun 4, 2015
1 parent 7c6cbea commit 6a42da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Email/Address/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ for (1 .. $COMMENT_NEST_LEVEL) {
$RE{'cfws'} = qr/$RE{'comment'}|\s+/;

$RE{'qcontent'} = qr/$RE{'qtext'}|$RE{'quoted_pair'}/;
$RE{'quoted-string'} = qr/$RE{'cfws'}*"$RE{'qcontent'}+"$RE{'cfws'}*/;
$RE{'quoted-string'} = qr/$RE{'cfws'}*"$RE{'qcontent'}*"$RE{'cfws'}*/;

$RE{'atom'} = qr/$RE{'cfws'}*$RE{'atext'}++$RE{'cfws'}*/;

Expand Down

0 comments on commit 6a42da3

Please sign in to comment.