fix for too much padding in certain history diffs
This commit is contained in:
parent
b97d328760
commit
3877414058
|
|
@ -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}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue