From e9973b635110cc8e6f266cff876463c541d07650 Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Wed, 10 Dec 2025 17:23:17 +0700 Subject: [PATCH] Update scrap_new_items.js --- scrap_new_items.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrap_new_items.js b/scrap_new_items.js index dc4a23f..d86ff19 100644 --- a/scrap_new_items.js +++ b/scrap_new_items.js @@ -155,7 +155,7 @@ async function scrapeWithPuppeteer(store) { if (!payload.currencyID?.trim()) { const match1 = text.match(/([A-Za-z]{2,3})\s?([\d.]+)/); if (match1) { - payload.currencyID = match[1] || match[3] || ""; + payload.currencyID = match1[1] || match1[3] || ""; } } // if (!payload.currencyID?.trim()) payload.currencyID = "";