(diff: str)
| 66 | |
| 67 | |
| 68 | def _normalize_diff_lines(diff: str) -> list[str]: |
| 69 | lines = [line.rstrip("\r") for line in re.split(r"\r?\n", diff)] |
| 70 | if lines and lines[-1] == "": |
| 71 | lines.pop() |
| 72 | return lines |
| 73 | |
| 74 | |
| 75 | def _detect_newline_from_text(text: str) -> str: |
no outgoing calls