Skip to content

Commit

Permalink
Fix the problem with setting value name that include comma (unless th…
Browse files Browse the repository at this point in the history
…e comma is followed by a number)
  • Loading branch information
sarbian committed Oct 8, 2016
1 parent ff94385 commit 517280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moduleManager.cs
Expand Up @@ -1657,7 +1657,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\&\-\.\?\*]*)(?:,(-?[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 517280b

Please sign in to comment.