mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 13:05:12 +00:00
HackStudio: Make Locator search case insensitive
Typing "make" should find "Makefile", for example. :^)
This commit is contained in:
parent
39ce7251f7
commit
d773795195
Notes:
sideshowbarker
2024-07-19 02:29:26 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/d773795195c Pull-request: https://github.com/SerenityOS/serenity/pull/4074
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void Locator::update_suggestions()
|
|||
auto typed_text = m_textbox->text();
|
||||
Vector<String> suggestions;
|
||||
project().for_each_text_file([&](auto& file) {
|
||||
if (file.name().contains(typed_text))
|
||||
if (file.name().contains(typed_text, CaseSensitivity::CaseInsensitive))
|
||||
suggestions.append(file.name());
|
||||
});
|
||||
dbgln("I have {} suggestion(s):", suggestions.size());
|
||||
|
|
Loading…
Add table
Reference in a new issue