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))