diff options
author | Eric Wong <e@80x24.org> | 2016-06-17 01:20:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-17 01:20:48 +0000 |
commit | b71683e668a8d75bf160601b09c775f4b4f92bc1 (patch) | |
tree | 28e845054476e6d7191636a0d5a93fefe2f74728 | |
parent | 3c9bb0e66ae923465c68245c336dbc1db76a4cd2 (diff) | |
download | public-inbox-b71683e668a8d75bf160601b09c775f4b4f92bc1.tar.gz |
We only do loose parsing, here, and I don't think I've seen a comma in a valid email address, so lets not support them.
-rw-r--r-- | lib/PublicInbox/Address.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm index ef4cbdc6..8b3daf50 100644 --- a/lib/PublicInbox/Address.pm +++ b/lib/PublicInbox/Address.pm @@ -7,7 +7,7 @@ use warnings; # very loose regexes, here. We don't need RFC-compliance, # just enough to make thing sanely displayable and pass to git -sub emails { ($_[0] =~ /([^<\s]+\@[^>\s]+)/g) } +sub emails { ($_[0] =~ /([^<\s,]+\@[^>\s,]+)/g) } sub from_name { my ($val) = @_; |