Skip to content

Commit

Permalink
fix: Extensions searchbar - make non case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Oct 26, 2024
1 parent 3d84224 commit cb02ae9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/biscuit/extensions/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ def fetch_searched_extensions(self, search_string) -> None:
except:
...

for name, data in self.fetched.items():
# More complex logic can be used using RegEx
if search_string in name:
if not search_string:
for name, data in self.fetched.items():
self.fetch_queue.put((name, data))

else:
for name, data in self.fetched.items():
if search_string.lower() in name.lower():
self.fetch_queue.put((name, data))

def fetch_extensions(self) -> None:
"""Fetch extensions from Extensions repository."""

Expand Down

0 comments on commit cb02ae9

Please sign in to comment.