diff --git a/kbb.js b/kbb.js index f128494..6f0bc73 100644 --- a/kbb.js +++ b/kbb.js @@ -19,7 +19,7 @@ async function getKBB(URL) { const dom = new jsdom.JSDOM(html); 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() {