diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-05 20:47:06 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-05 20:47:06 +0800 |
| commit | 54d54f503aab6f291e83635e8f54a96f55f1df30 (patch) | |
| tree | 1b8caa48e8633aea966feab4e677db03b1f5a53d /qml_plugin/src | |
| parent | 7fa0b20cb779fd84d66442763ffec87ba54f938c (diff) | |
duckduckgo: filter result case insensitively
Diffstat (limited to 'qml_plugin/src')
| -rw-r--r-- | qml_plugin/src/launcher/duckduckgo.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qml_plugin/src/launcher/duckduckgo.rs b/qml_plugin/src/launcher/duckduckgo.rs index 691c9da..16c9102 100644 --- a/qml_plugin/src/launcher/duckduckgo.rs +++ b/qml_plugin/src/launcher/duckduckgo.rs @@ -75,7 +75,10 @@ impl qobject::DuckDuckGo { .queue( move |mut qo| match result { Ok(r) => { - if (r.title == input + if (r + .title + .to_lower() + == input.to_lower() || r.title .is_empty()) && r.description_html |
