xvai-loi 0.1.57 → 0.1.58
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/co.txt +1 -1
- package/package.json +1 -1
- package/xvai-loi.js +3 -3
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi111042
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -18726,7 +18726,7 @@ async function handleExport(currentProject, setExporting, setExportedBlob, addLo
|
|
|
18726
18726
|
const kb = await kichBanDoan(window.__wsGocKB || currentProject.speechDraft?.analysis?.words || []);
|
|
18727
18727
|
try {
|
|
18728
18728
|
(kb?.muc || []).forEach((m) => {
|
|
18729
|
-
if (m && /^\s*(bước|mẹo|mục|cách|phần|điều|thói quen|lưu ý|việc)\s*(số\s*)
|
|
18729
|
+
if (m && /^\s*(bước|mẹo|mục|cách|phần|điều|thói quen|lưu ý|việc)\s*(số\s*)?(\d+|một|hai|ba|bốn|tư|năm|sáu|bảy|tám|chín|mười|cuối)\s*$/i.test(String(m.ten || "")) && String(m.mo || "").trim()) {
|
|
18730
18730
|
const mo4 = String(m.mo).trim();
|
|
18731
18731
|
m.ten = mo4.charAt(0).toLocaleUpperCase("vi") + mo4.slice(1);
|
|
18732
18732
|
}
|
|
@@ -20480,7 +20480,7 @@ async function napLoi(d) {
|
|
|
20480
20480
|
return "LOI: " + String(e && e.message || e).slice(0, 300);
|
|
20481
20481
|
}
|
|
20482
20482
|
}
|
|
20483
|
-
var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.
|
|
20483
|
+
var LOI_URL = "https://cdn.jsdelivr.net/npm/xvai-loi@0.1.57/nap.js";
|
|
20484
20484
|
var TRONG_LOI = !!globalThis.__xvaiReact;
|
|
20485
20485
|
try {
|
|
20486
20486
|
if (!TRONG_LOI) setTimeout(() => {
|
|
@@ -20510,7 +20510,7 @@ function datCauLenh(a) {
|
|
|
20510
20510
|
on2 = true;
|
|
20511
20511
|
window.addEventListener("message", async (ev) => {
|
|
20512
20512
|
const d = ev.data;
|
|
20513
|
-
if (!d || d.
|
|
20513
|
+
if (!d || d.xvaiLoi111042 !== true) return;
|
|
20514
20514
|
const o = String(ev.origin || "");
|
|
20515
20515
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
20516
20516
|
const tra = (kq) => {
|