mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-01-28 22:01:55 +00:00
Fix URL regex in export service
This commit is contained in:
@@ -87,7 +87,7 @@ namespace DiscordChatExporter.Services
|
||||
content = HtmlDocument.HtmlEncode(content);
|
||||
|
||||
// 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>");
|
||||
|
||||
// Preformatted multiline
|
||||
|
||||
Reference in New Issue
Block a user