Skip to content

Commit

Permalink
it's more straightforward/clear to use atom and quoted-string to buil…
Browse files Browse the repository at this point in the history
…d phrase

as rfc says:

    word            =       atom / quoted-string
  • Loading branch information
sunnavy committed Jun 4, 2015
1 parent a14af41 commit 7c6cbea
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 @@ -217,7 +217,7 @@ $RE{'quoted-string'} = qr/$RE{'cfws'}*"$RE{'qcontent'}+"$RE{'cfws'}*/;

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

$RE{'word'} = qr/$RE{'cfws'}* (?: $RE{'atom'} | "$RE{'qcontent'}+" ) $RE{'cfws'}*/x;
$RE{'word'} = qr/$RE{'atom'} | $RE{'quoted-string'}/x;
$RE{'phrase'} = qr/$RE{'word'}+/x;
$RE{'display-name'} = $RE{'phrase'};

Expand Down

0 comments on commit 7c6cbea

Please sign in to comment.