fix: links not getting recognised in chat

This commit is contained in:
2026-04-04 03:14:25 +02:00
parent 8674579b19
commit b9df9c92f2

View File

@@ -59,6 +59,7 @@ const RICH_MARKDOWN_PATTERNS = [
/(^|\n)(#{1,6}\s|>\s|[-*+]\s|\d+\.\s|```|~~~)/m, /(^|\n)(#{1,6}\s|>\s|[-*+]\s|\d+\.\s|```|~~~)/m,
/!\[[^\]]*\]\([^)]+\)/, /!\[[^\]]*\]\([^)]+\)/,
/\[[^\]]+\]\([^)]+\)/, /\[[^\]]+\]\([^)]+\)/,
/https?:\/\/\S+/,
/`[^`\n]+`/, /`[^`\n]+`/,
/\*\*[^*\n]+\*\*|__[^_\n]+__/, /\*\*[^*\n]+\*\*|__[^_\n]+__/,
/\*[^*\n]+\*|_[^_\n]+_/, /\*[^*\n]+\*|_[^_\n]+_/,