diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-02 17:58:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-02 17:58:48 -0400 |
commit | dc47ff15c57b0ba2263ab3b94b49e9906620f648 (patch) | |
tree | adb716e7a536c6bc9437848463d0b608449823a4 /src/SMAPI.Web/Framework/LogParsing/LogParser.cs | |
parent | b1a24452eef782332d699ef8193c01e0da8ffa01 (diff) | |
download | SMAPI-dc47ff15c57b0ba2263ab3b94b49e9906620f648.tar.gz SMAPI-dc47ff15c57b0ba2263ab3b94b49e9906620f648.tar.bz2 SMAPI-dc47ff15c57b0ba2263ab3b94b49e9906620f648.zip |
fix log parser not recognising content packs with no description (#481)
Diffstat (limited to 'src/SMAPI.Web/Framework/LogParsing/LogParser.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/LogParsing/LogParser.cs | 2 |
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 b5603bd9..163176fd 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>.+) by (?<author>.+) \| for (?<for>.+?)(?: \| (?<description>.+))?$", RegexOptions.Compiled | RegexOptions.IgnoreCase); /********* |