diff options
| author | Dax Raad <[email protected]> | 2025-10-14 02:55:02 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-14 02:55:02 -0400 |
| commit | cb73e2d9e18cefa46a47768ad98a967653ffbb45 (patch) | |
| tree | aca3952fb3b0684becc5678bd5417b9c087f089a | |
| parent | 48057c2c21020b2936c1786d498fb0319d83c3d9 (diff) | |
| download | opencode-cb73e2d9e18cefa46a47768ad98a967653ffbb45.tar.gz opencode-cb73e2d9e18cefa46a47768ad98a967653ffbb45.zip | |
fix: export trimDiff function from edit tool
| -rw-r--r-- | packages/opencode/src/tool/edit.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/edit.ts b/packages/opencode/src/tool/edit.ts index 579f9f09d..c761801a6 100644 --- a/packages/opencode/src/tool/edit.ts +++ b/packages/opencode/src/tool/edit.ts @@ -550,7 +550,7 @@ export const ContextAwareReplacer: Replacer = function* (content, find) { } } -function trimDiff(diff: string): string { +export function trimDiff(diff: string): string { const lines = diff.split("\n") const contentLines = lines.filter( (line) => |
