mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[core] improvement: do not perform the search if the normalized input is blank
This commit is contained in:
@@ -159,6 +159,7 @@ class GenericSoftwareManager(SoftwareManager, SettingsController):
|
|||||||
norm_query = sanitize_command_input(words).lower()
|
norm_query = sanitize_command_input(words).lower()
|
||||||
self.logger.info(f"Search query: {norm_query}")
|
self.logger.info(f"Search query: {norm_query}")
|
||||||
|
|
||||||
|
if norm_query:
|
||||||
is_url = bool(RE_IS_URL.match(norm_query))
|
is_url = bool(RE_IS_URL.match(norm_query))
|
||||||
disk_loader = self.disk_loader_factory.new()
|
disk_loader = self.disk_loader_factory.new()
|
||||||
disk_loader.start()
|
disk_loader.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user