Commit 865b472
fix: tighten TLD-glue lookahead so .com at end-of-string isn't split
The previous lookahead only required any letter after the TLD, so when
.com appeared at end-of-string (e.g. last email in a flattened bullet
list), the engine backtracked the alternation from .com (lookahead fail)
to .co followed by a lone trailing m, producing emails like rofe@adobe.co.
Require the following letter(s) to lead into another local part and @,
so the split only fires when there really is a glued-on next email.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 74a0fc4 commit 865b472
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments