mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-16 06:30:41 +00:00
Assistant: Skip URL provider if query is empty or provider specific
This commit is contained in:
parent
c06f72c264
commit
a4b4397a10
|
@ -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…
Reference in a new issue