Skip to content

Commit

Permalink
Allow 0 or many spaces before operator
Browse files Browse the repository at this point in the history
  • Loading branch information
blowfishpro committed Dec 22, 2017
1 parent 58e1ca2 commit 0d4d220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModuleManager/MMPatchLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ private static void PurgeUnused()
#region Applying Patches

// 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 0d4d220

Please sign in to comment.