(thisArg, _arguments, P, generator)
| 20566 | _endsWith(str, end) { |
| 20567 | return str.endsWith(end); |
| 20568 | } |
| 20569 | _isCmdFile() { |
| 20570 | const upperToolPath = this.toolPath.toUpperCase(); |
| 20571 | return this._endsWith(upperToolPath, ".CMD") || this._endsWith(upperToolPath, ".BAT"); |
| 20572 | } |
| 20573 | _windowsQuoteCmdArg(arg) { |
| 20574 | if (!this._isCmdFile()) { |
| 20575 | return this._uvQuoteCmdArg(arg); |
| 20576 | } |
| 20577 | if (!arg) { |
| 20578 | return '""'; |
| 20579 | } |
| 20580 | const cmdSpecialChars = [ |
| 20581 | " ", |
| 20582 | " ", |
| 20583 | "&", |
| 20584 | "(", |
| 20585 | ")", |
| 20586 | "[", |
| 20587 | "]", |
| 20588 | "{", |
| 20589 | "}", |
| 20590 | "^", |
| 20591 | "=", |
| 20592 | ";", |
| 20593 | "!", |
| 20594 | "'", |
| 20595 | "+", |
| 20596 | ",", |
| 20597 | "`", |
no test coverage detected