Skip to content

Commit

Permalink
case (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored May 25, 2023
1 parent 48fa051 commit 24add88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DocsLookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class DocEntry extends SchemaClass({
)
}

return terms
return terms.map(_ => _.toLowerCase())
}
}

Expand Down Expand Up @@ -180,7 +180,7 @@ ${entry.url}`,
_ => _.length >= 3,
_ => Effect.fail(new QueryTooShort({ actual: _.length, min: 3 })),
),
Effect.flatMap(search),
Effect.flatMap(_ => search(_.trim().toLowerCase())),
Effect.map(results =>
Ix.response({
type: Discord.InteractionCallbackType
Expand Down

0 comments on commit 24add88

Please sign in to comment.