Skip to content

Commit

Permalink
Allow apostraphe (fixes Kerbin-Side Jobs).
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Aug 13, 2020
1 parent a4477fd commit 64af016
Showing 1 changed file with 1 addition and 1 deletion.
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 64af016

Please sign in to comment.