zeek/testing/btest/Baseline/scripts.base.utils.email/output
Jon Siwek 170752fa99 Fix extract_first_email_addr() to really return the first email
The use of find_all() in extract_email_addrs_vec() extracted occurrences
to an intermediate set and thus lost any sense of ordering.

This changes extract_email_addrs_vec() to use find_all_ordered() and
return all occurrences of email addresses found in the argument,
included duplicates, with their order of occurrence preserved.
2020-08-11 11:26:21 -07:00

21 lines
429 B
Text

one@example.com
[one@example.com, two@example.com, three@example.com, one@example.com]
{
three@example.com,
two@example.com,
one@example.com
}
one@example.com
[one@example.com, two@example.com, three@example.com, one@example.com]
{
three@example.com,
two@example.com,
one@example.com
}
one@example.com
[one@example.com, two@example.com, three@example.com, one@example.com]
{
three@example.com,
one@example.com,
two@example.com
}