Skip to content

Commit

Permalink
Format code in levenshtein file
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Gonzalez committed Apr 4, 2024
1 parent 5c7d598 commit 740c932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/levenshtein.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export default class Levenshtein implements AlgorithmBase {
for (let i = 1; i <= start.length; i++) {
for (let j = 1; j <= end.length; j++) {
const best = [
{v: dp[i - 1][j] + 1, i: i - 1, j: j},
{v: dp[i][j - 1] + 1, i: i, j: j - 1},
{v: dp[i - 1][j] + 1, i: i - 1, j},
{v: dp[i][j - 1] + 1, i, j: j - 1},
{
v: dp[i - 1][j - 1] + (compareChar(start[i - 1], end[j - 1], this.options.ignoreCase) ? 0 : 1),
i: i - 1,
Expand Down

0 comments on commit 740c932

Please sign in to comment.