Update nginx_analyze.rb

This commit is contained in:
frictionel 2016-08-16 01:04:19 +02:00 committed by GitHub
parent 37b68f10ae
commit 7f33687bd5

View file

@ -49,7 +49,7 @@ class LogAnalyzer
private
def self.sanitize_url(url)
url.gsub(/(api_key|api_username)=(\w+)/, '\1=[FILTERED]')
url.gsub(/(api_key|api_username)=([\w.\-]+)/, '\1=[FILTERED]')
end
end