(command: string)
| 38 | * Returns true only for simple sed -i 's/pattern/replacement/flags' file commands |
| 39 | */ |
| 40 | export function isSedInPlaceEdit(command: string): boolean { |
| 41 | const info = parseSedEditCommand(command) |
| 42 | return info !== null |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Parse a sed edit command and extract the edit information |
nothing calls this directly
no test coverage detected