Skip to content

Commit

Permalink
Fixed the Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas committed Dec 31, 2015
1 parent 541dee8 commit 2918d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moduleManager.cs
Expand Up @@ -1452,7 +1452,7 @@ public IEnumerator ApplyPatch(List<string> excludePaths, string Stage)
}

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

// ModifyNode applies the ConfigNode mod as a 'patch' to ConfigNode original, then returns the patched ConfigNode.
// it uses FindConfigNodeIn(src, nodeType, nodeName, nodeTag) to recurse.
Expand Down

0 comments on commit 2918d13

Please sign in to comment.