rapid7/metasploit-framework — pull request #799 by sempervictus (2012-09-18 01:32:03+00:00)
Title: Fix console notes search via -S

This commit fixes msfconsole's notes -S functionality which
filters output of the notes command, leaving only entries which
match Regexp.new(search_term), with search_term being any argument
passed after the -S flag.

Testing:
Before applying patch, search for text in a note via the -S flag
Apply the patch, rinse, repeat.