From 62d201cf624d50c371e59308d3fde14787059ddc Mon Sep 17 00:00:00 2001 From: Alexander Fuks Date: Tue, 27 May 2025 07:12:36 +0000 Subject: [PATCH] fix: correct pageviews extraction --- _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 265b22430c8..9cd1281e3bb 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) => {