(token string)
| 127 | } |
| 128 | |
| 129 | func looksLikeSedScript(token string) bool { |
| 130 | return regexp.MustCompile(`^[sdyapicq]`).MatchString(token) || |
| 131 | regexp.MustCompile(`^[\d,$]`).MatchString(token) || |
| 132 | strings.HasPrefix(token, "/") |
| 133 | } |
| 134 | |
| 135 | func splitSedExpressions(expr string) []string { |
| 136 | var parts []string |
no outgoing calls
no test coverage detected