(string, pattern, start_pos)
| 353 | |
| 354 | def truncate(self, completion, truncate_before_pattern): |
| 355 | def find_re(string, pattern, start_pos): |
| 356 | m = pattern.search(string, start_pos) |
| 357 | return m.start() if m else -1 |
| 358 | |
| 359 | terminals = [re.compile(pattern, re.MULTILINE) for pattern in truncate_before_pattern] |
| 360 |
nothing calls this directly
no outgoing calls
no test coverage detected