mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user