C#: Address review comments

This commit is contained in:
Tom Hvitved
2018-12-10 15:31:23 +01:00
parent ad77afef04
commit 1e9fe0046a

View File

@@ -103,7 +103,8 @@ namespace Semmle.Autobuild
Select(s => AsStringWithExpandedEnvVars(s, actions)).ToArray();
}
static readonly Regex linuxEnvRegEx = new Regex(@"\$([A-Z_][A-Z_0-9]*)", RegexOptions.Compiled);
static readonly Regex linuxEnvRegEx = new Regex(@"\$([a-zA-Z_][a-zA-Z_0-9]*)", RegexOptions.Compiled);
public static string AsStringWithExpandedEnvVars(this string value, IBuildActions actions)
{
if (string.IsNullOrEmpty(value))