More fuzzy finder (#860)

This commit is contained in:
Armin Ronacher
2026-01-19 22:22:51 +01:00
committed by GitHub
parent d276c9fbe0
commit d37b5a52d7
2 changed files with 73 additions and 42 deletions

View File

@@ -53,6 +53,11 @@ describe("fuzzyMatch", () => {
assert.strictEqual(notAtBoundary.matches, true);
assert.ok(atBoundary.score < notAtBoundary.score);
});
it("matches swapped alpha numeric tokens", () => {
const result = fuzzyMatch("codex52", "gpt-5.2-codex");
assert.strictEqual(result.matches, true);
});
});
describe("fuzzyFilter", () => {