From 6f3560c680980e2954c937282f55a8f6da167590 Mon Sep 17 00:00:00 2001 From: Michael Hunhoff Date: Wed, 9 Sep 2020 11:23:03 -0600 Subject: [PATCH] fix 299 and add make search case insensitive --- capa/ida/plugin/proxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capa/ida/plugin/proxy.py b/capa/ida/plugin/proxy.py index b33a6f1b..73811815 100644 --- a/capa/ida/plugin/proxy.py +++ b/capa/ida/plugin/proxy.py @@ -5,7 +5,7 @@ # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and limitations under the License. - +import six from PyQt5 import QtCore from PyQt5.QtCore import Qt @@ -208,11 +208,11 @@ class CapaExplorerSearchProxyModel(QtCore.QSortFilterProxyModel): if not data: continue - if not isinstance(data, str): + if not isinstance(data, six.string_types): # sanity check: should already be a string, but double check continue - if self.query in data: + if self.query.lower() in data.lower(): return True return False