Commit 8baff10
fix: address CodeRabbit review feedback in linkDetector
- Fix double mailto: prefix for mailto: URLs in linkToken() — values
starting with "mailto:" are now classified as "url" not "email"
- Support schemeless URLs with ? or # suffixes (e.g. example.com?x=1,
example.com#frag) in both SCHEMELESS_RE and isSingleUrl()
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1ae0a32 commit 8baff10
File tree
1 file changed
+6
-3
lines changed- packages/core/src/extensions/tiptap-extensions/Link/helpers
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
0 commit comments