Remove added regex options from search_term

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-03-26 14:07:21 -04:00
parent b39e935c5b
commit 991f4e35ea
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 5 additions and 5 deletions

View File

@ -947,11 +947,11 @@ class Db
while (arg = args.shift) while (arg = args.shift)
case arg case arg
when '-a','--add' when '-a', '--add'
mode = :add mode = :add
when '-d','--delete' when '-d', '--delete'
mode = :delete mode = :delete
when '-n','--note' when '-n', '--note'
data = args.shift data = args.shift
if(!data) if(!data)
print_error("Can't make a note with no data") print_error("Can't make a note with no data")
@ -967,12 +967,12 @@ class Db
when '-R', '--rhosts' when '-R', '--rhosts'
set_rhosts = true set_rhosts = true
when '-S', '--search' when '-S', '--search'
search_term = /#{args.shift}/nmi search_term = args.shift
when '--sort' when '--sort'
sort_term = args.shift sort_term = args.shift
when '-o', '--output' when '-o', '--output'
out_file = args.shift out_file = args.shift
when '-h','--help' when '-h', '--help'
cmd_notes_help cmd_notes_help
return return
else else