This commit is contained in:
Dragon Fire
2021-02-08 22:04:46 -05:00
parent 886a7b61ba
commit b09d7bbf13
+1 -1
View File
@@ -182,7 +182,7 @@ module.exports = class Util {
}
static textDiff(oldText, newText) {
const changed = [];
let changed = [];
return oldText.split('').map((char, i) => {
if (char === newText.charAt(i)) {
const chars = changed.length ? `**${changed.join('')}**${char}` : char;