From c706799f9b2e724dee9a3b891dea72dfa587929e Mon Sep 17 00:00:00 2001 From: Alexander Fuks Date: Sun, 1 Jun 2025 00:51:43 +0400 Subject: [PATCH] fix: correct GoatCounter pageviews extraction (#2420) --- _includes/pageviews/goatcounter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/pageviews/goatcounter.html b/_includes/pageviews/goatcounter.html index 265b22430..9cd1281e3 100644 --- a/_includes/pageviews/goatcounter.html +++ b/_includes/pageviews/goatcounter.html @@ -10,7 +10,7 @@ fetch(url) .then((response) => response.json()) .then((data) => { - const count = data.count.replace(/\s/g, ''); + const count = data.count.replace(/\D/g, ''); pv.innerText = new Intl.NumberFormat().format(count); }) .catch((error) => {