From 8222f08946ca97c9434d879224fcf8b334c80bbe Mon Sep 17 00:00:00 2001 From: Alyssa Grace <92542067+Alyssa4854@users.noreply.github.com> Date: Sun, 30 Jun 2024 10:49:12 -0400 Subject: [PATCH] Added optional regex capture group Optional capture group "(?:
\s*)?" matches new styling on workshop pages; fixes changelogs (again) --- .../xcom2-launcher/Classes/Mod/ModChangelogCache.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xcom2-launcher/xcom2-launcher/Classes/Mod/ModChangelogCache.cs b/xcom2-launcher/xcom2-launcher/Classes/Mod/ModChangelogCache.cs index 67083ee..3222ff6 100644 --- a/xcom2-launcher/xcom2-launcher/Classes/Mod/ModChangelogCache.cs +++ b/xcom2-launcher/xcom2-launcher/Classes/Mod/ModChangelogCache.cs @@ -11,7 +11,12 @@ public static class ModChangelogCache private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(nameof(ModChangelogCache)); private static readonly ConcurrentDictionary(.*)
", RegexOptions.Compiled); + private static readonly Regex Regexp = new Regex( + @"((?:.|\n)*?)
", + RegexOptions.Compiled); public static async Task