Update scrap_new_items.js
This commit is contained in:
parent
deb585e884
commit
e9973b6351
|
|
@ -155,7 +155,7 @@ async function scrapeWithPuppeteer(store) {
|
||||||
if (!payload.currencyID?.trim()) {
|
if (!payload.currencyID?.trim()) {
|
||||||
const match1 = text.match(/([A-Za-z]{2,3})\s?([\d.]+)/);
|
const match1 = text.match(/([A-Za-z]{2,3})\s?([\d.]+)/);
|
||||||
if (match1) {
|
if (match1) {
|
||||||
payload.currencyID = match[1] || match[3] || "";
|
payload.currencyID = match1[1] || match1[3] || "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (!payload.currencyID?.trim()) payload.currencyID = "";
|
// if (!payload.currencyID?.trim()) payload.currencyID = "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue