This commit is contained in:
Admin 2025-08-14 15:24:14 +07:00
parent 3a9a4d092d
commit b669984033
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -377,8 +377,8 @@ function extractListings(productsEl: HTMLElement) {
/\d/.test(el.textContent || "") && /[AU$]/.test(el.textContent || "")
);
const priceMatch = priceEl?.textContent?.match(/\d+(?:\.\d+)?/);
const price = priceMatch ? parseFloat(priceMatch[0]) : 0;
const priceMatch = priceEl?.textContent?.match(/[\d,]+(?:\.\d+)?/);
const price = priceMatch ? parseFloat(priceMatch[0].replace(/,/g, "")) : 0;
return { title, price, el: productsEl };
});