mirror of
1
Fork 0
gotosocial/internal/text
Daenney 1bf40e755c
feat: Relax URL matching (#3925)
* feat: Relax URL matching

Instead of only linkifying things with an explicit http or https scheme,
the xurls.Relaxed also matches links with known TLDs. This means that
text like 'banana.com' will also be matched, despite the missing
http/https scheme. This also works to linkify email addresses, which is
handy.

This should also ensure we catch links without a scheme for the purpose
of spam checking.
2025-03-24 14:13:32 +01:00
..
emojify.go [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
formatter.go [chore/bugfix] Deinterface text.Formatter, allow underscores in hashtags (#2233) 2023-09-29 10:39:56 +02:00
formatter_test.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 2025-03-07 14:04:34 +00:00
goldmark_custom_renderer.go [feature] Media attachment placeholders (#2331) 2023-11-10 19:29:26 +01:00
goldmark_parsers.go [bugfix] Extend parser to handle more non-Latin hashtags (#3700) 2025-01-31 11:42:55 +01:00
goldmark_plaintext.go [chore/bugfix] Deinterface text.Formatter, allow underscores in hashtags (#2233) 2023-09-29 10:39:56 +02:00
markdown.go feat: Relax URL matching (#3925) 2025-03-24 14:13:32 +01:00
markdown_test.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 2025-03-07 14:04:34 +00:00
minify.go [bugfix] Use custom bluemonday policy to disallow inline img tags (#2100) 2023-08-11 14:40:11 +02:00
normalize.go [bugfix] Extend parser to handle more non-Latin hashtags (#3700) 2025-01-31 11:42:55 +01:00
plain.go feat: Relax URL matching (#3925) 2025-03-24 14:13:32 +01:00
plain_test.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 2025-03-07 14:04:34 +00:00
sanitize.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 2025-03-07 14:04:34 +00:00
sanitize_test.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 2025-03-07 14:04:34 +00:00
substring.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
substring_test.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
util.go [bugfix] Extend parser to handle more non-Latin hashtags (#3700) 2025-01-31 11:42:55 +01:00