trim whitespace

pull/880/head
Sebastian Bäumlisberger 2021-11-01 10:00:00 +01:00
parent eef1d5841e
commit ea2bff585e
1 changed files with 2 additions and 2 deletions

View File

@ -654,8 +654,8 @@ namespace WinSW
throw new WinSWException("The environment variables file contains one or more invalid entries. Each variable definition must be on a separate line and in the format \"key=value\".");
}
string key = line.Substring(0, equalsSignIndex);
string value = line.Substring(equalsSignIndex + 1);
string key = line.Substring(0, equalsSignIndex).Trim();
string value = line.Substring(equalsSignIndex + 1).Trim();
Environment.SetEnvironmentVariable(key, value);
}