From d3f50f421df814f9f44ff71ad610b32e9fe5828e Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Thu, 10 May 2018 22:39:49 -0500 Subject: [PATCH] Update regex --- lib/metasploit/framework/compiler/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metasploit/framework/compiler/utils.rb b/lib/metasploit/framework/compiler/utils.rb index b339754ed0..27c912b2dd 100644 --- a/lib/metasploit/framework/compiler/utils.rb +++ b/lib/metasploit/framework/compiler/utils.rb @@ -10,7 +10,7 @@ module Metasploit # @return [String] The normalized code. def self.normalize_code(code, headers) code = code.lines.map { |line| - if line =~ /^#include <(.+)>$/ + if line =~ /^#include <([[:print:]]+)>$/ %Q|<%= headers.include('#{$1}') %>\n| else line