Skip to content

Commit 1dfc70d

Browse files
authored
fix: casefold strings before querying (#3554)
1 parent 5430c90 commit 1dfc70d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bot/exts/info/pep.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def pep_slash_command_autocomplete(self, interaction: Interaction, query:
125125
return []
126126

127127
# list[('pep_num - pep_title', similarity, pep_number)]
128-
result = process.extract(query=query, choices=self.pep_autocomplete_choices, limit=10)
128+
result = process.extract(query=query, choices=self.pep_autocomplete_choices, limit=10, processor=str.casefold)
129129
return [app_commands.Choice(name=pep[0], value=pep[2]) for pep in result]
130130

131131

0 commit comments

Comments
 (0)