chengjie 3 mēneši atpakaļ
vecāks
revīzija
33924703d1
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      src/test/build.test.js

+ 5 - 2
src/test/build.test.js

@@ -67,8 +67,11 @@ async function runScript(){
67 67
                 result=result.substring(result.indexOf("```")+3);
68 68
                 result=result.substring(0,result.lastIndexOf("```"));
69 69
             }
70
-            else if (result.indexOf("Here 's a breakdown of the response")>0){
71
-                result=result.substring(0,result.lastIndexOf("Here 's a breakdown of the response"));
70
+            else if (result.indexOf("Here 's a breakdown")>0){
71
+                result=result.substring(0,result.lastIndexOf("Here 's a breakdown"));
72
+            }
73
+            else if (result.indexOf("Here is the explanation")>0){
74
+                result=result.substring(0,result.lastIndexOf("Here is the explanation"));
72 75
             }
73 76
             //console.log("result2:"+result);
74 77