()
| 20605 | let arg = ""; |
| 20606 | function append(c) { |
| 20607 | if (escaped && c !== '"') { |
| 20608 | arg += "\\"; |
| 20609 | } |
| 20610 | arg += c; |
| 20611 | escaped = false; |
| 20612 | } |
| 20613 | for (let i = 0; i < argString.length; i++) { |
| 20614 | const c = argString.charAt(i); |
| 20615 | if (c === '"') { |
| 20616 | if (!escaped) { |
| 20617 | inQuotes = !inQuotes; |
| 20618 | } else { |
| 20619 | append(c); |
| 20620 | } |
| 20621 | continue; |
no test coverage detected