teodor-new-chat-ui 2.0.13 → 2.0.14

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/index.esm.js CHANGED
@@ -3366,17 +3366,25 @@ function Ga(e) {
3366
3366
  viability: [],
3367
3367
  other: []
3368
3368
  };
3369
- for (const o of Object.keys(n)) {
3370
- const a = new RegExp(o + "\\s*=\\s*\\[([\\s\\S]*?)\\]", "i").exec(t);
3371
- if (!a) continue;
3372
- const i = a[1], u = /Issue\(([\s\S]*?)\)(?:,|$)/g;
3373
- let f = null;
3374
- for (; (f = u.exec(i)) !== null; ) {
3375
- const d = f[1], p = /title\s*=\s*'(.*?)'/.exec(d) || /title\s*=\s*"(.*?)"/.exec(d), g = /description\s*=\s*'(.*?)'/.exec(d) || /description\s*=\s*"(.*?)"/.exec(d), v = p ? p[1].trim() : "", m = g ? g[1].trim() : "";
3376
- n[o].push({ title: v, description: m });
3377
- }
3378
- }
3379
- return Object.values(n).some((o) => o.length > 0) ? n : null;
3369
+ let r = t;
3370
+ const o = Math.min(
3371
+ ...["desirability=", "feasibility=", "viability=", "other="].map((a) => {
3372
+ const i = r.toLowerCase().indexOf(a);
3373
+ return i === -1 ? Number.MAX_SAFE_INTEGER : i;
3374
+ })
3375
+ );
3376
+ o !== Number.MAX_SAFE_INTEGER && (r = r.slice(o));
3377
+ for (const a of Object.keys(n)) {
3378
+ const u = new RegExp(a + "\\s*=\\s*\\[([\\s\\S]*?)\\]", "i").exec(r);
3379
+ if (!u) continue;
3380
+ const f = u[1], d = /Issue\(([\s\S]*?)\)(?:,|$)/g;
3381
+ let p = null;
3382
+ for (; (p = d.exec(f)) !== null; ) {
3383
+ const g = p[1], v = /title\s*=\s*(['"])([\s\S]*?)\1/.exec(g), m = /description\s*=\s*(['"])([\s\S]*?)\1/.exec(g), h = v ? v[2].trim() : "", b = m ? m[2].trim() : "";
3384
+ n[a].push({ title: h, description: b });
3385
+ }
3386
+ }
3387
+ return Object.values(n).some((a) => a.length > 0) ? n : null;
3380
3388
  }
3381
3389
  function Ap({ issues: e }) {
3382
3390
  return /* @__PURE__ */ c("div", { className: "prose prose-sm max-w-none dark:prose-invert", children: [