mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
Assistant: Skip URL provider if query is empty or provider specific
This commit is contained in:
parent
c06f72c264
commit
a4b4397a10
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ void TerminalProvider::query(String const& query, Function<void(NonnullRefPtrVec
|
|||
|
||||
void URLProvider::query(String const& query, Function<void(NonnullRefPtrVector<Result>)> on_complete)
|
||||
{
|
||||
if (query.is_empty() || query.starts_with('=') || query.starts_with('$'))
|
||||
return;
|
||||
|
||||
URL url = URL(query);
|
||||
|
||||
if (url.scheme().is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue