- commit
- f57722e06aacf10e450e3bc368d706a6a707b447
- parent
- d4bfba05ce621eec9075eec8c408294b50d3121f
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-05-12 06:46
fix diff (again)
Diffstat
M | static/context.js | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/context.js b/static/context.js
@@ -69,7 +69,7 @@ export var diff = function(text1, text2, ctx) { 69 69 while (start < text1.length && start < text2.length && text1[start] === text2[start]) { 70 70 start += 1; 71 71 }72 -1 while (start + end <= text1.length && start + end <= text2.length && text1.slice(-end || Infinity) === text2.slice(-end || Infinity)) {-1 72 while (start + end < text1.length && start + end < text2.length && text1[text1.length - 1 - end] === text2[text2.length - 1 - end]) { 73 73 end += 1; 74 74 } 75 75