Skip to content

Commit

Permalink
use code from main in checking for wildcard char.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Apr 27, 2022
1 parent 21a9070 commit 0dc084b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const hasSimpleExecutableName = ({
return false;
}

return /[\*\?]/.test(lastString) === false;
return (lastString.split('*').length || lastString.split('?').length) === 1;
};

export const isPathValid = ({
Expand Down

0 comments on commit 0dc084b

Please sign in to comment.