diff --git a/libs/platforms/intigriti/scopes.rb b/libs/platforms/intigriti/scopes.rb index 729fc8c..c85bcdb 100644 --- a/libs/platforms/intigriti/scopes.rb +++ b/libs/platforms/intigriti/scopes.rb @@ -65,7 +65,7 @@ def self.find_category(scope) def self.normalize(endpoint) endpoint = sanitize_endpoint(endpoint) - if endpoint.match?(%r{^(https?://|\*\.)[/\w.\-?#!%:=]+$}) || endpoint.match?(%r{^[/\w.-]+\.[a-z]+(/.*)?}) + if endpoint.match?(%r{^(https?://|\*\.)[/\w.\-?#!%:=]+$}i) || endpoint.match?(%r{^[/\w.-]+\.[a-z]+(/.*)?}i) endpoint.downcase else Utilities.log_warn("Intigriti - Non-normalized endpoint : #{endpoint}") diff --git a/libs/platforms/yeswehack/scopes.rb b/libs/platforms/yeswehack/scopes.rb index f06ce1b..62028c7 100644 --- a/libs/platforms/yeswehack/scopes.rb +++ b/libs/platforms/yeswehack/scopes.rb @@ -64,7 +64,7 @@ def self.normalize_urls(scope) normalized_urls.concat(normalize_with_tlds(match_data[1], match_data[2])) elsif scope.match?(%r{https?://\*}) normalized_urls << scope.sub(%r{https?://}, '') - elsif scope.match?(%r{^(https?://|\*\.)[/\w.\-?#!%:=]+$}) || scope.match?(%r{^[/\w.-]+\.[a-z]+(/.*)?}) + elsif scope.match?(%r{^(https?://|\*\.)[/\w.\-?#!%:=]+$}) || scope.match?(%r{^[/\w.-]+\.[a-z]+(/.*)?}i) normalized_urls << scope else Utilities.log_warn("YesWeHack - Non-normalized scope : #{scope}")