Commit c8f3ff1
committed
fix: preserve angle-bracketed emails (Name <a@b>) from HTML tag stripper
Teams users pasting addresses in RFC-5322 mailbox form (e.g. from Outlook)
produced messages where the bot silently extracted zero emails, because
<email@domain> was matched and removed by the generic <[^>]+> tag stripper
before the email regex ran. Tighten the stripper to skip <...> spans that
contain an @, since real HTML tags never do.1 parent 865b472 commit c8f3ff1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments