Просмотр исходного кода

fix: export trimDiff function from edit tool

Dax Raad 4 месяцев назад
Родитель
Сommit
cb73e2d9e1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/opencode/src/tool/edit.ts

+ 1 - 1
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 lines = diff.split("\n")
   const contentLines = lines.filter(
   const contentLines = lines.filter(
     (line) =>
     (line) =>