Skip to content

Commit

Permalink
v2.7.3 Fix the regex for @value,* =
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Nov 5, 2016
1 parent 0f8ea05 commit 854aacb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("2.7.2")]
[assembly: AssemblyVersion("2.7.3")]
[assembly: KSPAssembly("ModuleManager", 2, 5)]

// The following attributes are used to specify the signing key for the assembly,
Expand Down
2 changes: 1 addition & 1 deletion moduleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ public IEnumerator ApplyPatch(List<string> excludePaths, string Stage)
}

// Name is group 1, index is group 2, vector related filed is group 3, vector separator is group 4, operator is group 5
private static Regex parseValue = new Regex(@"([\w\&\-\.\?\*]+(?:,\D[\w\&\-\.\?\*]*)*)(?:,(-?[0-9\*]+))?(?:\[((?:[0-9\*]+)+)(?:,(.))?\])?(?:\s([+\-*/^!]))?");
private static Regex parseValue = new Regex(@"([\w\&\-\.\?\*]+(?:,[^*\d][\w\&\-\.\?\*]*)*)(?:,(-?[0-9\*]+))?(?:\[((?:[0-9\*]+)+)(?:,(.))?\])?(?:\s([+\-*/^!]))?");

// Path is group 1, operator is group 5
private static Regex parseAssign = new Regex(@"(.*)(?:\s)+([+\-*/^!])?");
Expand Down

0 comments on commit 854aacb

Please sign in to comment.