()
| 20632 | return '""'; |
| 20633 | } |
| 20634 | if (!arg.includes(" ") && !arg.includes(" ") && !arg.includes('"')) { |
| 20635 | return arg; |
| 20636 | } |
| 20637 | if (!arg.includes('"') && !arg.includes("\\")) { |
| 20638 | return `"${arg}"`; |
| 20639 | } |
| 20640 | let reverse = '"'; |
| 20641 | let quoteHit = true; |
| 20642 | for (let i = arg.length; i > 0; i--) { |
| 20643 | reverse += arg[i - 1]; |
| 20644 | if (quoteHit && arg[i - 1] === "\\") { |
| 20645 | reverse += "\\"; |
| 20646 | } else if (arg[i - 1] === '"') { |
| 20647 | quoteHit = true; |
nothing calls this directly
no test coverage detected