about summary refs log tree commit homepage
path: root/lib/PublicInbox/Address.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-17 01:20:48 +0000
committerEric Wong <e@80x24.org>2016-06-17 01:20:48 +0000
commitb71683e668a8d75bf160601b09c775f4b4f92bc1 (patch)
tree28e845054476e6d7191636a0d5a93fefe2f74728 /lib/PublicInbox/Address.pm
parent3c9bb0e66ae923465c68245c336dbc1db76a4cd2 (diff)
downloadpublic-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.
Diffstat (limited to 'lib/PublicInbox/Address.pm')
-rw-r--r--lib/PublicInbox/Address.pm2
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) = @_;