Skip to content

Commit

Permalink
Update description for is_emailaddress() method in POD
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Jan 15, 2015
1 parent 2bb7779 commit 23df3ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/Sisimai/RFC5322.pm
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,14 @@ C<is_emailaddress()> checks the argument is valid email address or not.
print Sisimai::RFC5322->is_emailaddress( 'neko@example.jp' ); # 1
print Sisimai::RFC5322->is_emailaddress( 'neko%example.jp' ); # 0
print Sisimai::RFC5322->is_emailaddress( 'Stray cat <neko@example.jp>' ); # 1
my $addr_with_name = [
'Stray cat <neko@example.jp',
'=?UTF-8?B?55m954yr?= <shironeko@example.co.jp>',
];
for my $e ( @$addr_with_name ) {
print Sisimai::RFC5322->is_emailaddress( $e ); # 1
}
=head2 C<B<is_domainpart( I<Domain> )>>
Expand Down

0 comments on commit 23df3ed

Please sign in to comment.