Skip to content

Commit

Permalink
we probably also want to prettify terabytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Humbedooh committed Mar 14, 2019
1 parent ed2359f commit 2a55188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/site/js/blocky.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function list_bans(state, json) {
lastbit = m ? m[1] : '';
name = "%s (%s)".format(res.ip, lastbit);
}
res.reason = res.reason.replace(/\b(\d{4,12})\b/g, (a,b) => parseInt(b).pretty());
res.reason = res.reason.replace(/\b(\d{4,16})\b/g, (a,b) => parseInt(b).pretty());
let tr = new HTML('tr', {}, [
new HTML('td', {}, _kbd(name)),
new HTML('td', timeout),
Expand Down
2 changes: 1 addition & 1 deletion server/site/js/source/banlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function list_bans(state, json) {
lastbit = m ? m[1] : '';
name = "%s (%s)".format(res.ip, lastbit);
}
res.reason = res.reason.replace(/\b(\d{4,12})\b/g, (a,b) => parseInt(b).pretty());
res.reason = res.reason.replace(/\b(\d{4,16})\b/g, (a,b) => parseInt(b).pretty());
let tr = new HTML('tr', {}, [
new HTML('td', {}, _kbd(name)),
new HTML('td', timeout),
Expand Down

0 comments on commit 2a55188

Please sign in to comment.