Merge pull request #4395 from frictionel/patch-2

FIX: correct regex for username
This commit is contained in:
Guo Xiang Tan 2016-08-19 16:19:57 +08:00 committed by GitHub
commit ab9a8c6a3e

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