ide-assi 0.169.0 → 0.170.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
|
@@ -193332,9 +193332,12 @@ class IdeUtils
|
|
|
193332
193332
|
console.log(text);
|
|
193333
193333
|
|
|
193334
193334
|
//return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193335
|
-
const match = text.match(/```json([\s\S]*?)```/);
|
|
193336
|
-
|
|
193337
|
-
|
|
193335
|
+
//const match = text.match(/```json([\s\S]*?)```/);
|
|
193336
|
+
//return match ? match[1].trim() : text;
|
|
193337
|
+
let match = text.match(/```json([\s\S]*?)```/);
|
|
193338
|
+
if (!match) match = text.match(/```jsx([\s\S]*?)```/);
|
|
193339
|
+
if (!match) match = text.match(/```xml([\s\S]*?)```/);
|
|
193340
|
+
if (!match) match = text.match(/```java([\s\S]*?)```/);
|
|
193338
193341
|
|
|
193339
193342
|
return match ? match[1].trim() : text;
|
|
193340
193343
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193328,9 +193328,12 @@ class IdeUtils
|
|
|
193328
193328
|
console.log(text);
|
|
193329
193329
|
|
|
193330
193330
|
//return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
193331
|
-
const match = text.match(/```json([\s\S]*?)```/);
|
|
193332
|
-
|
|
193333
|
-
|
|
193331
|
+
//const match = text.match(/```json([\s\S]*?)```/);
|
|
193332
|
+
//return match ? match[1].trim() : text;
|
|
193333
|
+
let match = text.match(/```json([\s\S]*?)```/);
|
|
193334
|
+
if (!match) match = text.match(/```jsx([\s\S]*?)```/);
|
|
193335
|
+
if (!match) match = text.match(/```xml([\s\S]*?)```/);
|
|
193336
|
+
if (!match) match = text.match(/```java([\s\S]*?)```/);
|
|
193334
193337
|
|
|
193335
193338
|
return match ? match[1].trim() : text;
|
|
193336
193339
|
};
|
|
@@ -22,9 +22,12 @@ export class IdeUtils
|
|
|
22
22
|
console.log(text);
|
|
23
23
|
|
|
24
24
|
//return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
25
|
-
const match = text.match(/```json([\s\S]*?)```/);
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
//const match = text.match(/```json([\s\S]*?)```/);
|
|
26
|
+
//return match ? match[1].trim() : text;
|
|
27
|
+
let match = text.match(/```json([\s\S]*?)```/);
|
|
28
|
+
if (!match) match = text.match(/```jsx([\s\S]*?)```/);
|
|
29
|
+
if (!match) match = text.match(/```xml([\s\S]*?)```/);
|
|
30
|
+
if (!match) match = text.match(/```java([\s\S]*?)```/);
|
|
28
31
|
|
|
29
32
|
return match ? match[1].trim() : text;
|
|
30
33
|
};
|
package/package.json
CHANGED
|
@@ -22,9 +22,12 @@ export class IdeUtils
|
|
|
22
22
|
console.log(text);
|
|
23
23
|
|
|
24
24
|
//return text.replace(/```[\s\S]*?```/g, '').trim();
|
|
25
|
-
const match = text.match(/```json([\s\S]*?)```/);
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
//const match = text.match(/```json([\s\S]*?)```/);
|
|
26
|
+
//return match ? match[1].trim() : text;
|
|
27
|
+
let match = text.match(/```json([\s\S]*?)```/);
|
|
28
|
+
if (!match) match = text.match(/```jsx([\s\S]*?)```/);
|
|
29
|
+
if (!match) match = text.match(/```xml([\s\S]*?)```/);
|
|
30
|
+
if (!match) match = text.match(/```java([\s\S]*?)```/);
|
|
28
31
|
|
|
29
32
|
return match ? match[1].trim() : text;
|
|
30
33
|
};
|