From 6fae6065d6356a43eee981b7c4bbfbbdce6aa36f Mon Sep 17 00:00:00 2001 From: Erin Bleiweiss Date: Fri, 14 Sep 2018 16:05:43 -0500 Subject: [PATCH] Upcase all the things --- lib/msf/core/modules/external/shim.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/msf/core/modules/external/shim.rb b/lib/msf/core/modules/external/shim.rb index 68bd38ce4f..d9588e2286 100644 --- a/lib/msf/core/modules/external/shim.rb +++ b/lib/msf/core/modules/external/shim.rb @@ -140,14 +140,12 @@ class Msf::Modules::External::Shim 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. # def self.transform_notes(notes) - upcase_keys = %w[aka nocve] notes.reduce({}) do |acc, (key, val)| - key = (upcase_keys.include? key.downcase) ? key.upcase : key - acc[key] = val + acc[key.upcase] = val acc end end