We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b4a09d commit 02cd678Copy full SHA for 02cd678
src/jsutils/suggestionList.js
@@ -87,7 +87,7 @@ class LexicalDistance {
87
);
88
89
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
90
- d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);
+ d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + 1);
91
}
92
93
0 commit comments