Skip to content

Commit

Permalink
chore: use includes for DocsLookup (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored May 25, 2023
1 parent 3ab13b1 commit 42a054e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocsLookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const make = Effect.gen(function* (_) {
Effect.zipRight(allDocs),
Effect.map(_ =>
_.map((_, index) => [_, index] as const).filter(([_]) =>
_.term.startsWith(query),
_.term.includes(query),
),
),
Effect.logAnnotate("module", "DocsLookup"),
Expand Down

0 comments on commit 42a054e

Please sign in to comment.