mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-23 06:24:48 +00:00
Fix URL regex in export service
This commit is contained in:
@@ -87,7 +87,7 @@ namespace DiscordChatExporter.Services
|
|||||||
content = HtmlDocument.HtmlEncode(content);
|
content = HtmlDocument.HtmlEncode(content);
|
||||||
|
|
||||||
// Links from URLs
|
// Links from URLs
|
||||||
content = Regex.Replace(content, "((^|\\s)(https?|ftp)://[^\\s/$.?#].[^\\s]*($|\\s))",
|
content = Regex.Replace(content, "((https?|ftp)://[^\\s/$.?#].[^\\s]*)",
|
||||||
"<a href=\"$1\">$1</a>");
|
"<a href=\"$1\">$1</a>");
|
||||||
|
|
||||||
// Preformatted multiline
|
// Preformatted multiline
|
||||||
|
|||||||
Reference in New Issue
Block a user