Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
fix propKey substring (#10)
Browse files Browse the repository at this point in the history
propi -1 cuts the key one character too soon, so the comparison in #104 is never true, resulting in values from property file never being honored.
  • Loading branch information
MartinGoodwell authored and jtaubensee committed May 16, 2017
1 parent e3172b8 commit 8e66e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static void Run()
{
continue;
}
var propKey = propl.Substring(0, propi - 1).Trim();
var propKey = propl.Substring(0, propi).Trim();
var propVal = propl.Substring(propi + 1).Trim();
if (properties.ContainsKey(propKey))
{
Expand Down Expand Up @@ -642,4 +642,4 @@ Task Run(
string receiveKeyName,
string receiveKey);
}
}
}

0 comments on commit 8e66e27

Please sign in to comment.