Skip to content

Commit

Permalink
bug fix: could not find .bat files when there was trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FieryRMS committed May 23, 2024
1 parent d434028 commit 4435afc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ private static async Task<bool> LaunchApplicationFromPath(string currentInput, s
positionOfDelimiter = currentInput.Length - 1;

positionOfDelimiter += 1;
var fileName = currentInput.Substring(0, positionOfDelimiter).Trim('"');
var fileName = currentInput.Substring(0, positionOfDelimiter).Trim().Trim('"');
var arguments = currentInput.Substring(positionOfDelimiter);

return await LaunchHelper.LaunchAppAsync(fileName, arguments, workingDir);
Expand Down

0 comments on commit 4435afc

Please sign in to comment.