(command: str)
| 270 | |
| 271 | @staticmethod |
| 272 | def _closing_quotes(command: str) -> str: |
| 273 | stack: list[str] = [] |
| 274 | for char in command: |
| 275 | if char not in {"'", '"'}: |
| 276 | continue |
| 277 | if stack and stack[-1] == char: |
| 278 | stack.pop() |
| 279 | else: |
| 280 | stack.append(char) |
| 281 | return "".join(reversed(stack)) |
| 282 | |
| 283 | def _rewrite_scanner_command(self, command: str) -> str: |
| 284 | provider = self.scanner_provider |