Assistant: Skip URL provider if query is empty or provider specific

This commit is contained in:
Edwin Hoksberg 2021-07-03 21:32:52 +02:00 committed by Andreas Kling
commit a4b4397a10
Notes: sideshowbarker 2024-07-18 10:32:52 +09:00

View file

@ -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())