Files
shields/services
TheConfax 4aa38bdd5f [ChromeWebStoreUsers] Fix 1M+ counts rendering as "12000,000" not "12M" (#12028)
* [ChromeWebStoreUsers] Fix 1M+ counts rendering as "12000,000" not "12M"

The Chrome Web Store reports counts with thousands separators, e.g.
"12,000,000". The handler stripped them with a string argument to
String.prototype.replace, which only removes the first match, leaving
"12000,000". metric() then coerced that to NaN and printed it verbatim.
Counts below 1M have a single separator, so they were unaffected.

Use a global regex so every separator is removed, and extract the logic
into a testable static transform() (mirroring ChromeWebStoreSize) with
deterministic unit tests for the millions case.

* [ChromeWebStoreUsers] Address review: use replaceAll, drop redundant metric test
2026-07-21 08:32:55 +00:00
..
2025-09-27 22:27:02 +00:00
2026-03-08 20:28:41 +00:00
2026-06-21 19:49:18 +00:00
2026-07-18 16:59:25 +00:00
2026-07-18 16:59:45 +00:00
2025-09-27 22:27:21 +00:00
2025-12-07 21:17:10 +00:00
2026-03-15 19:57:38 +00:00
2025-09-28 14:48:26 +00:00
2025-09-21 06:45:06 +00:00
2024-03-18 13:53:59 +00:00
2025-12-07 21:17:15 +00:00
2026-03-08 22:25:44 +00:00
2024-12-31 13:54:25 +00:00
2026-05-23 06:34:03 +00:00
2023-12-20 16:28:41 +00:00
2025-10-06 16:29:21 +00:00
2024-12-31 13:54:25 +00:00
2026-03-08 20:29:13 +00:00
2026-07-18 17:00:01 +00:00
2026-06-02 19:35:11 +02:00
2021-07-09 12:53:55 +01:00
2021-07-09 12:53:55 +01:00
2025-10-06 16:30:22 +00:00