mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Fix URL regex in export service
This commit is contained in:
parent
d17fef6721
commit
460a319a45
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue