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) => {