Skip to content

Commit

Permalink
fix: check lower case extensions in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed May 1, 2023
1 parent ba58b51 commit 8d64a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const getPathInfo = (cmd, {
]

if (isWindows) {
const pathExtExe = optPathExt || ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)
const pathExtExe = optPathExt ||
['.exe', '.EXE', '.cmd', '.CMD', '.bat', '.BAT', '.com', '.COM'].join(optDelimiter)
const pathExt = pathExtExe.split(optDelimiter)
if (cmd.includes('.') && pathExt[0] !== '') {
pathExt.unshift('')
Expand Down

0 comments on commit 8d64a07

Please sign in to comment.