From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/nodes/code/code-parser.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/components/workflow/nodes/code/code-parser.ts b/app/components/workflow/nodes/code/code-parser.ts
index 0973a01..e1b0928 100644
--- a/app/components/workflow/nodes/code/code-parser.ts
+++ b/app/components/workflow/nodes/code/code-parser.ts
@@ -25,7 +25,7 @@
 }
 export const extractReturnType = (code: string, language: CodeLanguage): OutputVar => {
   const codeWithoutComments = code.replace(/\/\*\*[\s\S]*?\*\//, '')
-  // console.log(codeWithoutComments)
+  console.log(codeWithoutComments)
 
   const returnIndex = codeWithoutComments.indexOf('return')
   if (returnIndex === -1)
@@ -64,7 +64,7 @@
     return {}
 
   const returnContent = codeAfterReturn.slice(startIndex + 1, endIndex - 1)
-  // console.log(returnContent)
+  console.log(returnContent)
 
   const result: OutputVar = {}
 
@@ -72,7 +72,7 @@
   const matches = returnContent.matchAll(keyRegex)
 
   for (const match of matches) {
-    // console.log(`Found key: "${match[1]}" from match: "${match[0]}"`)
+    console.log(`Found key: "${match[1]}" from match: "${match[0]}"`)
     const key = match[1]
     result[key] = {
       type: VarType.string,
@@ -80,7 +80,7 @@
     }
   }
 
-  // console.log(result)
+  console.log(result)
 
   return result
 }

--
Gitblit v1.8.0