Commit d0287f2
committed
fix(tokenize): correct capture group reference in website regex
The websites regex /[.](com|net|org|io|gov|edu|me)/g has only one
capture group for the TLD, but was incorrectly referencing $2.
This caused URLs to be corrupted with literal '$2' text.
Changed $2 to $1 to correctly reference the TLD capture group.1 parent 0bb2745 commit d0287f2
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