Commit 163ea66

Anton Medvedev <anton@medv.io>
2022-10-04 23:20:54
Remove quoteWindow function
1 parent 0c6c4e5
Changed files (1)
src/util.ts
@@ -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