From 18215f90d09cd0fc3c0b168748242e67df882be8 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 16 Jan 2015 17:36:18 -0800 Subject: [PATCH] more flexible regex to block empty JS Logster errors --- config/initializers/logster.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index d0dcaca0b..26e92c9e4 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -15,7 +15,7 @@ if Rails.env.production? # Column: 0 # Window Location: http://discourse.codinghorror.com/t/the-god-login/2924/19 # - /^Script error.\nUrl: \nLine: 0?\n/, + /(?m)\AScript error\..*?Line: 0.*?Column: 0/, # suppress trackback spam bots Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),