1 # Copyright (C) 2016 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
3 package PublicInbox::Address;
7 # very loose regexes, here. We don't need RFC-compliance,
8 # just enough to make thing sanely displayable and pass to git
10 sub emails { ($_[0] =~ /([\w\.\+=\-]+\@[\w\.\-]+)>?\s*(?:,\s*|\z)/g) }
20 } split(/\@+[\w\.\-]+>?\s*(?:,\s*|\z)/, $_[0]);