Skip to content

Commit b43d9af

Browse files
committed
fix: Properly remove the second comma from user counts over 1,000,000
1 parent f800177 commit b43d9af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/crawlers/chrome-crawler.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ export async function crawlExtension(
5757
userCountRow
5858
.querySelectorAll("a")
5959
.forEach((anchor: HTMLAnchorElement) => anchor.remove());
60+
console.log(userCountRow.textContent);
6061
const weeklyActiveUsers = (userCountRow.textContent as string)
6162
// "XYZ+ users"
6263
.replace(" users", "")
63-
.replace(",", "")
64+
.replaceAll(",", "")
6465
.replace("+", "")
6566
.trim();
67+
console.log(weeklyActiveUsers);
6668

6769
// ratingRow.outerHTML:
6870
// <span>

0 commit comments

Comments
 (0)