From d55cbbd03359792f0ab0a5386bf22209796640c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Luthi?= Date: Wed, 31 Jan 2024 10:10:34 +0100 Subject: [PATCH] Ignore case when finding application argument (#21) --- src/Tmds.ExecFunction/ExecFunction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tmds.ExecFunction/ExecFunction.cs b/src/Tmds.ExecFunction/ExecFunction.cs index 102bd95..a08c078 100644 --- a/src/Tmds.ExecFunction/ExecFunction.cs +++ b/src/Tmds.ExecFunction/ExecFunction.cs @@ -296,7 +296,7 @@ private static string GetApplicationArgument(string[] arguments, string name) { for (int i = 0; i < arguments.Length - 1; i++) { - if (arguments[i] == name) + if (string.Equals(arguments[i], name, StringComparison.OrdinalIgnoreCase)) { return arguments[i + 1]; }