Skip to content

Commit

Permalink
Update sdfv.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored May 8, 2024
1 parent b74a385 commit 976a270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdfv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,10 @@ export function find_in_graph(
query = query.toLowerCase();
find_in_graph_predicate(
sdfv, renderer, sdfg, (graph: DagreGraph, element: SDFGElement) => {
let label = element.label();
let text = element.text_for_find();
if (!case_sensitive)
label = label.toLowerCase();
return label.indexOf(query) !== -1;
text = text.toLowerCase();
return text.indexOf(query) !== -1;
}
);
sdfv.sidebar_set_title('Search Results for "' + query + '"');
Expand Down

0 comments on commit 976a270

Please sign in to comment.