Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 9aa9a01

Browse files
committed
Update versiong regex
1 parent b62a7ad commit 9aa9a01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ModLoader/Loader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private void loadMod(SFSMod mod)
239239
/// <returns>True if they are valid versions</returns>
240240
private bool verifyVersion(string version1, string version2)
241241
{
242-
Regex rx = new Regex(@"\bv([0-9]|[1-9][0-9]).([0-9]|[1-9][0-9]|x).([0-9]|[1-9][0-9]|x)\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
242+
Regex rx = new Regex(@"\bv([0-9]+)(\.([0-9]+|x)){2}\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
243243
// has the format v1.x.x
244244
if (rx.IsMatch(version1) && rx.IsMatch(version2))
245245
{

0 commit comments

Comments
 (0)