Upcase all the things
parent
e590b7c01f
commit
6fae6065d6
|
@ -140,14 +140,12 @@ class Msf::Modules::External::Shim
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# In case certain notes like AKA and NOCVE are not properly capitalized in the external module definition,
|
# In case certain notes are not properly capitalized in the external module definition,
|
||||||
# ensure that they are properly capitalized before rendering.
|
# ensure that they are properly capitalized before rendering.
|
||||||
#
|
#
|
||||||
def self.transform_notes(notes)
|
def self.transform_notes(notes)
|
||||||
upcase_keys = %w[aka nocve]
|
|
||||||
notes.reduce({}) do |acc, (key, val)|
|
notes.reduce({}) do |acc, (key, val)|
|
||||||
key = (upcase_keys.include? key.downcase) ? key.upcase : key
|
acc[key.upcase] = val
|
||||||
acc[key] = val
|
|
||||||
acc
|
acc
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue