divanoli
38a94ec5fe
fix(telegram): catch orphaned single-letter TLD patterns
...
When text like 'R&D.md' doesn't match the main file pattern (because &
breaks the character class), the 'D.md' part can still be auto-linked
by Telegram as a domain (https://d.md/ ).
Add second pass to catch orphaned TLD patterns like 'D.md', 'R.io', 'X.ai'
that follow non-alphanumeric characters and wrap them in <code> tags.
Pattern: ([^a-zA-Z0-9]|^)([A-Za-z]\.(?:extensions))(?=[^a-zA-Z0-9/]|$)
Tests added:
- 'wraps orphaned TLD pattern after special character' (R&D.md → R&<code>D.md</code>)
- 'wraps orphaned single-letter TLD patterns' (X.ai, R.io)
2026-02-05 11:54:09 +03:00
..
2026-02-01 10:03:47 +09:00
2026-02-03 18:06:54 -08:00
2026-02-03 16:19:41 -08:00
2026-02-02 16:18:09 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 18:06:54 -08:00
2026-02-03 13:56:20 -05:00
2026-02-02 23:45:05 -08:00
2026-01-30 03:16:21 +01:00
2026-02-03 18:03:53 -08:00
2026-02-02 15:37:05 +09:00
2026-02-02 15:37:05 +09:00
2026-02-03 14:27:39 -08:00
2026-02-01 10:03:47 +09:00
2026-02-03 14:27:39 -08:00
2026-02-03 17:57:55 -08:00
2026-02-02 02:07:47 -08:00
2026-02-01 10:03:47 +09:00
2026-02-03 18:06:54 -08:00
2026-02-02 16:18:09 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 04:58:32 -08:00
2026-02-03 21:53:48 +09:00
2026-02-02 23:45:05 -08:00
2026-02-03 09:34:25 -08:00
2026-02-01 10:03:47 +09:00
2026-02-03 14:27:39 -08:00
2026-02-03 20:18:16 +09:00
2026-01-31 20:39:33 -06:00
2026-02-01 10:03:47 +09:00
2026-02-01 13:19:06 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 16:18:09 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-02 16:18:09 +09:00
2026-02-02 16:53:07 -08:00
2026-02-05 11:54:09 +03:00
2026-02-03 06:22:51 +00:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 06:11:11 +00:00
2026-02-02 01:52:33 +01:00
2026-02-02 23:45:05 -08:00
2026-02-03 21:53:48 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 08:43:25 +00:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-03 20:18:16 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 06:10:19 +00:00
2026-02-02 16:18:09 +09:00
2026-01-31 16:19:20 +09:00
2026-02-03 17:31:51 -08:00