Skip to content

Commit 5fce00f

Browse files
author
HD Moore
committed
Land rapid7#5395, fixes rapid7#5378, corrects search -S
2 parents bdf30dd + ee1a366 commit 5fce00f

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,8 @@ def cmd_notes(*args)
12701270
end
12711271
end
12721272
if search_term
1273-
note_list.delete_if do |n|
1274-
!n.attribute_names.any? { |a| n[a.intern].to_s.match(search_term) }
1273+
note_list = note_list.select do |n|
1274+
n.attribute_names.any? { |a| n[a.intern].to_s.match(search_term) }
12751275
end
12761276
end
12771277

0 commit comments

Comments
 (0)