mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Merge remote-tracking branch 'christina23/master'
* christina23/master: Added unit tests for regex fix Improved regex for SMTP parsing
This commit is contained in:
commit
a56fbe408f
5 changed files with 17 additions and 2 deletions
|
@ -19,3 +19,9 @@ three@example.com,
|
|||
one@example.com,
|
||||
two@example.com
|
||||
}
|
||||
john.smith@email.com
|
||||
[john.smith@email.com, jane.doe@email.com]
|
||||
{
|
||||
john.smith@email.com
|
||||
jane.doe@email.com
|
||||
}
|
||||
|
|
|
@ -15,3 +15,7 @@ s = "ieje one@example.com, eifj two@example.com, asdf three@example.com, one@exa
|
|||
print extract_first_email_addr(s);
|
||||
print extract_email_addrs_vec(s);
|
||||
print extract_email_addrs_set(s);
|
||||
s = "\"Smith, John\" <john.smith@email.com>, \"Doe, Jane\" <jane.doe@email.com>";
|
||||
print extract_first_email_addr(s);
|
||||
print extract_email_addrs_vec(s);
|
||||
print extract_email_addrs_set(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue