瀏覽代碼

fix: export trimDiff function from edit tool

Dax Raad 1 年之前
父節點
當前提交
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 contentLines = lines.filter(
     (line) =>