From 976a2708714f00e9bd7953d080d743210af40164 Mon Sep 17 00:00:00 2001 From: Tal Ben-Nun Date: Wed, 8 May 2024 10:50:56 -0700 Subject: [PATCH] Update sdfv.ts --- src/sdfv.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdfv.ts b/src/sdfv.ts index f79411e6..9bba2783 100644 --- a/src/sdfv.ts +++ b/src/sdfv.ts @@ -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 + '"');