diff --git a/src/util.ts b/src/util.ts index 1c42eaf4d5..ca5cb47b51 100644 --- a/src/util.ts +++ b/src/util.ts @@ -101,7 +101,7 @@ export function preferLocalBin( // } export function quote(arg: string): string { - if (/^[\w/.-@:=]+$/.test(arg) || arg === '') { + if (/^[\w/.\-@:=]+$/.test(arg) || arg === '') { return arg } return ( @@ -120,7 +120,7 @@ export function quote(arg: string): string { } export function quotePowerShell(arg: string): string { - if (/^[\w/.-]+$/.test(arg) || arg === '') { + if (/^[\w/.\-]+$/.test(arg) || arg === '') { return arg } return `'` + arg.replace(/'/g, "''") + `'`