Skip to content

Commit

Permalink
fix interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Humbedooh committed Mar 11, 2019
1 parent 063c758 commit f937162
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 @@ -50,7 +50,7 @@ function list_activity(state, json) {
if (res.epoch) {
when = moment(res.epoch*1000.0).fromNow();
}
res.text = res.text.replace(/\b([a-f0-9]{8})[a-f0-9]{32}\b/g, (a) => a + "..");
res.text = res.text.replace(/\b([a-f0-9]{8})[a-f0-9]{32}\b/g, (a) => a[1] + "..");
let tr = new HTML('tr', {}, [
new HTML('td', {}, _kbd(res.ntype)),
new HTML('td', moment(res.epoch*1000.0).fromNow()),
Expand Down
2 changes: 1 addition & 1 deletion server/site/js/source/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function list_activity(state, json) {
if (res.epoch) {
when = moment(res.epoch*1000.0).fromNow();
}
res.text = res.text.replace(/\b([a-f0-9]{8})[a-f0-9]{32}\b/g, (a) => a + "..");
res.text = res.text.replace(/\b([a-f0-9]{8})[a-f0-9]{32}\b/g, (a) => a[1] + "..");
let tr = new HTML('tr', {}, [
new HTML('td', {}, _kbd(res.ntype)),
new HTML('td', moment(res.epoch*1000.0).fromNow()),
Expand Down

0 comments on commit f937162

Please sign in to comment.