mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00

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.
21 lines
429 B
Text
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
|
|
}
|