We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30a9d0 commit a4cc2a0Copy full SHA for a4cc2a0
src/util.ts
@@ -101,7 +101,7 @@ export function preferLocalBin(
101
// }
102
103
export function quote(arg: string): string {
104
- if (/^[\w/.-@:=]+$/.test(arg) || arg === '') {
+ if (/^[\w/.\-@:=]+$/.test(arg) || arg === '') {
105
return arg
106
}
107
return (
@@ -120,7 +120,7 @@ export function quote(arg: string): string {
120
121
122
export function quotePowerShell(arg: string): string {
123
- if (/^[\w/.-]+$/.test(arg) || arg === '') {
+ if (/^[\w/.\-]+$/.test(arg) || arg === '') {
124
125
126
return `'` + arg.replace(/'/g, "''") + `'`
0 commit comments