chore: format code

fix/cli-clean-exit-on-model-errors
GitHub Action 2025-11-12 16:14:12 +00:00
parent bd198d8550
commit 2d7ba43a21
1 changed files with 2 additions and 1 deletions

View File

@ -527,7 +527,8 @@ export namespace Provider {
let suggestions: string[] = []
const normalize = (str: string) => str.toLowerCase().replace(/[^a-z0-9]/g, "")
const levenshtein = (a: string, b: string) => {
const m = a.length, n = b.length
const m = a.length,
n = b.length
const dp = Array.from({ length: m + 1 }, () => new Array<number>(n + 1).fill(0))
for (let i = 0; i <= m; i++) dp[i][0] = i
for (let j = 0; j <= n; j++) dp[0][j] = j