(command)
| 276 | } |
| 277 | |
| 278 | function shellPythonWriteContent(command) { |
| 279 | if (!/\bpython(?:3)?\b/.test(command || '')) return ''; |
| 280 | const script = shellHereDocContent(command) || command; |
| 281 | return pythonStringArg(script, /\.write_text\s*\(\s*/g) || pythonStringArg(script, /\.write\s*\(\s*/g); |
| 282 | } |
| 283 | |
| 284 | function pythonStringArg(script, prefixRe) { |
| 285 | let prefix; |
no test coverage detected