Handle a couple more edge cases
I don't want to go any further down the rabbit hole.bug/bundler_fix
parent
41605c533c
commit
11e3e1f3dd
|
@ -598,11 +598,11 @@ module Msf
|
||||||
mod_name = args[0]
|
mod_name = args[0]
|
||||||
|
|
||||||
# Ensure we have a reference name and not a path
|
# Ensure we have a reference name and not a path
|
||||||
if mod_name.start_with?('modules/')
|
if mod_name.start_with?('modules/', '/')
|
||||||
mod_name.sub!(/^modules\//, '')
|
mod_name.sub!(/^(?:modules)?\//, '')
|
||||||
end
|
end
|
||||||
if mod_name.end_with?('.', '.rb')
|
if mod_name.end_with?('.', '.r', '.rb')
|
||||||
mod_name.sub!(/\.(?:rb)?$/, '')
|
mod_name.sub!(/\.(?:rb?)?$/, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue