fix for too much padding in certain history diffs

This commit is contained in:
Jesse D. McDonald 2020-05-07 21:07:01 -05:00
parent b97d328760
commit 3877414058
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ function diffHistory(game1, game2) {
}
}
let suffix = hist.history.slice(history_before.length).trimStart();
let suffix = hist.history.slice(history_before.length).match(/^(?:\s|…)*(.*)$/)[1];
if (!suffix.match(/^\d+\./)) {
suffix = `${turn_before}.${NBSP}${suffix}`;
}