git.shiar.nl
/
sc2-widget
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strip whitespace in member arrays of json output
[sc2-widget]
/
getsc2clan
diff --git
a/getsc2clan
b/getsc2clan
index 4f6bcc35fd4f5827693e3eed0156f047616bd09c..b23d2ac4f2f17443db86924791e78c3266333181 100755
(executable)
--- 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