mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Added unit tests for regex fix
This commit is contained in:
parent
dead3226a5
commit
bb7af9a823
2 changed files with 10 additions and 0 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