diff --git a/src/command_line.cc b/src/command_line.cc index 6d889572..fb1e36a2 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -2312,7 +2312,7 @@ bool QueryDbMainLoop( break; } - if (db->detailed_names[i].find(query) != std::string::npos) { + if (SubstringMatch(query, db->detailed_names[i])) { optional info = GetSymbolInfo(db, working_files, db->symbols[i]); if (!info) continue;