Skip to content

Commit

Permalink
Remove quoteWindow function
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Oct 4, 2022
1 parent 0c6c4e5 commit 163ea66
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ export function quote(arg: string) {
)
}

export function quoteWindows(arg: string) {
if (/^[a-z0-9/_.\-@:=]+$/i.test(arg) || arg === '') {
return arg
}
return `"` + arg.replace(/"/g, '\\"').replace(/\n/g, '^\n') + `"`
}

export function quotePowerShell(arg: string) {
if (/^[a-z0-9/_.\-]+$/i.test(arg) || arg === '') {
return arg
Expand Down

0 comments on commit 163ea66

Please sign in to comment.