From c070fcdb8fab8f604e3f5b7e2fce588cfef16819 Mon Sep 17 00:00:00 2001 From: crueter Date: Tue, 13 Jan 2026 14:56:00 -0500 Subject: [PATCH] fix dashed list2 and links Signed-off-by: crueter --- src/core/hle/service/bcat/news/builtin_news.cpp | 8 ++++++-- src/qt_common/discord/discord_impl.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/hle/service/bcat/news/builtin_news.cpp b/src/core/hle/service/bcat/news/builtin_news.cpp index d86020cbe0..2c75fc416f 100644 --- a/src/core/hle/service/bcat/news/builtin_news.cpp +++ b/src/core/hle/service/bcat/news/builtin_news.cpp @@ -141,7 +141,7 @@ std::optional DownloadReleasesJson() { cli.set_read_timeout(10); httplib::Headers headers{ - {"User-Agent", "eden"}, + {"User-Agent", "Eden"}, {"Accept", "application/vnd.github+json"}, }; @@ -192,6 +192,10 @@ std::string SanitizeMarkdown(std::string_view markdown) { static const boost::regex list2(R"(^ \* )"); text = boost::regex_replace(text, list2, " • "); + // what + static const boost::regex list2_dash(R"(^ - )"); + text = boost::regex_replace(text, list2_dash, " • "); + // Convert bold/italic text into normal text static const boost::regex bold(R"(\*\*(.*?)\*\*)"); text = boost::regex_replace(text, bold, "$1"); @@ -200,7 +204,7 @@ std::string SanitizeMarkdown(std::string_view markdown) { text = boost::regex_replace(text, italic, "$1"); // Remove links and convert to normal text - static const boost::regex link(R"([(.*?)]\(.*\))"); + static const boost::regex link(R"(\[([^\]]+)\]\([^)]*\))"); text = boost::regex_replace(text, link, "$1"); // Trim trailing whitespace/newlines diff --git a/src/qt_common/discord/discord_impl.cpp b/src/qt_common/discord/discord_impl.cpp index 8e43c6b49b..3bf5544198 100644 --- a/src/qt_common/discord/discord_impl.cpp +++ b/src/qt_common/discord/discord_impl.cpp @@ -100,7 +100,7 @@ void DiscordImpl::Update() { "https://raw.githubusercontent.com/eden-emulator/boxart/refs/heads/master/img/{}.png", icon_name); - httplib::Client client(game_url); + httplib::SSLClient client(game_url); client.set_connection_timeout(3); client.set_read_timeout(3); client.set_follow_location(true);