We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2190c1 commit 754885dCopy full SHA for 754885d
ModAssistant/Classes/Utils.cs
@@ -275,7 +275,11 @@ public static string GetVersion()
275
var strlen = reader.ReadInt32();
276
var strbytes = reader.ReadBytes(strlen);
277
278
- return Encoding.UTF8.GetString(strbytes);
+ var version = Encoding.UTF8.GetString(strbytes);
279
+
280
+ //There is one version ending in "p1" on BeatMods
281
+ var filteredVersionMatch = Regex.Match(version, @"[\d]+.[\d]+.[\d]+(p1)?");
282
+ return filteredVersionMatch.Success ? filteredVersionMatch.Value : version;
283
}
284
285
0 commit comments