(command string)
| 154 | } |
| 155 | |
| 156 | func hasInplaceFlag(command string) bool { |
| 157 | for _, token := range Tokenize(command, true) { |
| 158 | if token == "-i" || strings.HasPrefix(token, "--in-place") || regexp.MustCompile(`^-i\.`).MatchString(token) { |
| 159 | return true |
| 160 | } |
| 161 | } |
| 162 | return false |
| 163 | } |
| 164 | |
| 165 | func extractSedFileArgs(command string) []string { |
| 166 | tokens := Tokenize(command, true) |
no test coverage detected