From eb6cb3960944b606e29f95c071450ee0cd3afe14 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 2 May 2019 02:59:52 +0200 Subject: [PATCH] strip whitespace in member arrays of json output --- getsc2clan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getsc2clan b/getsc2clan index 4f6bcc3..b23d2ac 100755 --- a/getsc2clan +++ b/getsc2clan @@ -62,4 +62,4 @@ say JSON->new->canonical->pretty->encode({ blizget(metadata => profile => 2 => 1 => $_->{id}) # lacks mmr, fav race (available in new api) } @members], -}); +}) =~ s/(?: \G \d,? | \[ ) \K \s+ (?=\d|\])/ /grx; # concat arrays of single digits -- 2.30.0