Skip to content

Commit

Permalink
fix: Process Memory provider search not being case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 28, 2023
1 parent 3254376 commit 9b80486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/external/pattern_language
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h>
#include <hex/ui/widgets.hpp>
#include <hex/helpers/utils.hpp>

#include <array>
#include <mutex>
Expand Down Expand Up @@ -87,10 +88,10 @@ namespace hex::plugin::windows {

std::set<MemoryRegion> m_memoryRegions;
ui::SearchableWidget<Process> m_processSearchWidget = ui::SearchableWidget<Process>([](const std::string &search, const Process &process) {
return process.name.contains(search);
return hex::containsIgnoreCase(process.name, search);
});
ui::SearchableWidget<MemoryRegion> m_regionSearchWidget = ui::SearchableWidget<MemoryRegion>([](const std::string &search, const MemoryRegion &memoryRegion) {
return memoryRegion.name.contains(search);
return hex::containsIgnoreCase(memoryRegion.name, search);
});

HANDLE m_processHandle = nullptr;
Expand Down

0 comments on commit 9b80486

Please sign in to comment.