Class: AirbrakeAPI::Middleware::ScrubResponse

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/airbrake-api/middleware/scrub_response.rb

Instance Method Summary collapse

Instance Method Details

#parse(body) ⇒ Object


7
8
9
10
11
# File 'lib/airbrake-api/middleware/scrub_response.rb', line 7

def parse(body)
  body.gsub!(/<__utmz>.*?<\/__utmz>/m,'')
  body.gsub!(/<[0-9]+.*?>.*?<\/[0-9]+.*?>/m,'')
  body
end