mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
UPDATED: improving email address splitting for common comma case
This commit is contained in:
parent
9524963da6
commit
1e37e91eda
3 changed files with 17 additions and 1 deletions
|
@ -58,7 +58,7 @@ function extract_first_email_addr(str: string): string
|
|||
function split_mime_email_addresses(line: string): set[string]
|
||||
{
|
||||
local output = string_set();
|
||||
local addrs = find_all(line, /(\"[^"]*\")?[^,]+/);
|
||||
local addrs = find_all(line, /(\"[^"]*\")?[^,]+@[^,]+/);
|
||||
for ( part in addrs )
|
||||
{
|
||||
add output[strip(part)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue