From 61f5f2e233bcc5ffb975c89fc704ef1991a07982 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Tue, 2 Jun 2015 09:59:49 -0700 Subject: [PATCH] Now with less greedy needles --- commands/FBFindCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/FBFindCommands.py b/commands/FBFindCommands.py index f2b7fda..07a511c 100644 --- a/commands/FBFindCommands.py +++ b/commands/FBFindCommands.py @@ -93,7 +93,7 @@ def run(self, arguments, options): def printMatchesInViewOutputStringAndCopyFirstToClipboard(needle, haystack): first = None - for match in re.finditer('.*<.*(' + needle + ').*: (0x[0-9a-fA-F]*);.*', haystack, re.IGNORECASE): + for match in re.finditer('.*<.*(' + needle + ')\\S*: (0x[0-9a-fA-F]*);.*', haystack, re.IGNORECASE): view = match.groups()[-1] className = fb.evaluateExpressionValue('(id)[(' + view + ') class]').GetObjectDescription() print('{} {}'.format(view, className))