Support car values over $1m

This commit is contained in:
Robert Dyer
2024-12-10 02:10:04 -06:00
parent b3dd876989
commit 5cd519c8a6
+1 -1
View File
@@ -19,7 +19,7 @@ async function getKBB(URL) {
const dom = new jsdom.JSDOM(html); const dom = new jsdom.JSDOM(html);
const kbbText = dom.window.document.getElementById('PriceAdvisor').getElementsByTagName('text')[3].textContent; const kbbText = dom.window.document.getElementById('PriceAdvisor').getElementsByTagName('text')[3].textContent;
return parseInt(kbbText.replace('$', '').replace(',', '')) * 100; return parseInt(kbbText.replace('$', '').replaceAll(',', '')) * 100;
} }
(async function() { (async function() {