Skip to content

Commit 92b6ec6

Browse files
committed
Match searches case-insensitively in the flamegraph
This used to be the case before we introduced regex matching. It is simply more ergonomic to do in general.
1 parent 0665717 commit 92b6ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flamegraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ void FlameGraph::setSearchValue(const QString& value, bool useRegex)
12221222
m_search = value;
12231223
m_useRegex = useRegex;
12241224
auto regex = useRegex ? value : QRegularExpression::escape(value);
1225-
auto match = applySearch(m_rootItem, QRegularExpression(regex));
1225+
auto match = applySearch(m_rootItem, QRegularExpression(regex, QRegularExpression::CaseInsensitiveOption));
12261226

12271227
if (value.isEmpty()) {
12281228
m_searchResultsLabel->hide();

0 commit comments

Comments
 (0)