(input: string)
| 58 | } |
| 59 | |
| 60 | function stripTrailingNewline(input: string): string { |
| 61 | return input.endsWith('\n') ? input.slice(0, -1) : input |
| 62 | } |
| 63 | |
| 64 | function sanitizeUnifiedDiff(rawDiff: string): string { |
| 65 | const diffFenceMatch = rawDiff.match(/```diff\r?\n([\s\S]*?)\r?\n```/i) |
no outgoing calls
no test coverage detected