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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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", () => {