Remove decimal seperators to get number of hits
Change-Id: I93fe04518c1b83420e02fa6df8fb4acbba9eeb4c
diff --git a/lib/korap_rc.js b/lib/korap_rc.js
index 67b31ee..409e39e 100644
--- a/lib/korap_rc.js
+++ b/lib/korap_rc.js
@@ -46,7 +46,7 @@
await page.waitForNavigation();
const total_results = await page.$("#total-results")
assert.notEqual(total_results, null, "cannot find total results")
- const hits = Number(await page.evaluate(total_results => total_results.textContent, total_results))
+ const hits = Number((await page.evaluate(total_results => total_results.textContent, total_results)).replace(/[,.]/g, ""))
return hits
}