ide-assi 0.144.0 → 0.146.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.cjs.js
CHANGED
|
@@ -193328,7 +193328,7 @@ class IdeUtils
|
|
|
193328
193328
|
static extractResponse = (response, gptServer) => {
|
|
193329
193329
|
|
|
193330
193330
|
const extractJsonSnippet = (text) => {
|
|
193331
|
-
text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193331
|
+
return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193332
193332
|
//const match = text.match(/```json([\s\S]*?)```/);
|
|
193333
193333
|
//return match ? match[1].trim() : text;
|
|
193334
193334
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193324,7 +193324,7 @@ class IdeUtils
|
|
|
193324
193324
|
static extractResponse = (response, gptServer) => {
|
|
193325
193325
|
|
|
193326
193326
|
const extractJsonSnippet = (text) => {
|
|
193327
|
-
text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193327
|
+
return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193328
193328
|
//const match = text.match(/```json([\s\S]*?)```/);
|
|
193329
193329
|
//return match ? match[1].trim() : text;
|
|
193330
193330
|
};
|
|
@@ -18,7 +18,7 @@ export class IdeUtils
|
|
|
18
18
|
static extractResponse = (response, gptServer) => {
|
|
19
19
|
|
|
20
20
|
const extractJsonSnippet = (text) => {
|
|
21
|
-
text.replace(/```[\s\S]*?```/g, '').trim();
|
|
21
|
+
return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
22
22
|
//const match = text.match(/```json([\s\S]*?)```/);
|
|
23
23
|
//return match ? match[1].trim() : text;
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export class IdeUtils
|
|
|
18
18
|
static extractResponse = (response, gptServer) => {
|
|
19
19
|
|
|
20
20
|
const extractJsonSnippet = (text) => {
|
|
21
|
-
text.replace(/```[\s\S]*?```/g, '').trim();
|
|
21
|
+
return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
22
22
|
//const match = text.match(/```json([\s\S]*?)```/);
|
|
23
23
|
//return match ? match[1].trim() : text;
|
|
24
24
|
};
|