mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 05:00:16 +00:00
More fuzzy finder (#860)
This commit is contained in:
parent
d276c9fbe0
commit
d37b5a52d7
2 changed files with 73 additions and 42 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue