summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework
diff options
context:
space:
mode:
authorDan Volchek <danvolchek@users.noreply.github.com>2019-12-26 20:34:39 -0800
committerDan Volchek <danvolchek@users.noreply.github.com>2019-12-26 20:34:39 -0800
commit360a982336e8b250d79597e323ba267c70c404c2 (patch)
tree1e4fa2b0395d0368ab3344fbdb23beb942d12d2a /src/SMAPI.Web/Framework
parent9ea25993569d7295c02db7b7c1cd2f9669b5fba0 (diff)
downloadSMAPI-360a982336e8b250d79597e323ba267c70c404c2.tar.gz
SMAPI-360a982336e8b250d79597e323ba267c70c404c2.tar.bz2
SMAPI-360a982336e8b250d79597e323ba267c70c404c2.zip
fix log parser content pack list entry pattern, remove unneeded ternary in content pack logging
Diffstat (limited to 'src/SMAPI.Web/Framework')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/LogParser.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
index 66a3687f..1210f708 100644
--- a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
@@ -37,7 +37,7 @@ namespace StardewModdingAPI.Web.Framework.LogParsing
private readonly Regex ContentPackListStartPattern = new Regex(@"^Loaded \d+ content packs:$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
/// <summary>A regex pattern matching an entry in SMAPI's content pack list.</summary>
- private readonly Regex ContentPackListEntryPattern = new Regex(@"^ (?<name>.+) (?<version>.+) by (?<author>.+) \| for (?<for>.+?)(?: \| (?<description>.+))?$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
+ private readonly Regex ContentPackListEntryPattern = new Regex(@"^ (?<name>.+?) (?<version>" + SemanticVersion.UnboundedVersionPattern + @")(?: by (?<author>[^\|]+))? \| for (?<for>[^\|]+)(?: \| (?<description>.+))?$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
/// <summary>A regex pattern matching the start of SMAPI's mod update list.</summary>
private readonly Regex ModUpdateListStartPattern = new Regex(@"^You can update \d+ mods?:$", RegexOptions.Compiled | RegexOptions.IgnoreCase);