Skip to content

Commit

Permalink
Loosened parser restrictions for Agent. Fixes #687
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Jul 3, 2020
1 parent 37f5b0a commit a7cd1b2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Contract Configurator 1.29.0
- Support for KSP 1.9
Contract Configurator 1.28.2
- Allowed a wider range of Agent names to be parsed by the AgentParser (thanks Morphisor244).
- Add ModuleManager patch to fix old Agent definitions with a missing title (thanks Tonka Crash).

Contract Configurator 1.28.1
Expand Down
Binary file modified GameData/ContractConfigurator/CC_RemoteTech.dll
Binary file not shown.
Binary file modified GameData/ContractConfigurator/ContractConfigurator.dll
Binary file not shown.
Binary file modified GameData/ContractConfigurator/KerKonConConExt.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override U ConvertType<U>(Agent value)
public override Agent ParseIdentifier(Token token)
{
// Try to parse more, as Agent names can have spaces
Match m = Regex.Match(expression, @"^((?>\s*[\w\d]+)+).*");
Match m = Regex.Match(expression, @"^((?>\s*[\w\d-+/*,!@#$%^&*()]+)+).*");
string identifier = m.Groups[1].Value;
expression = (expression.Length > identifier.Length ? expression.Substring(identifier.Length) : "");
identifier = token.sval + identifier;
Expand Down

0 comments on commit a7cd1b2

Please sign in to comment.