This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new e14df767 Don't be greedy
e14df767 is described below

commit e14df767b9d2a5dcb9432a8a6918e0df0d24989d
Author: Sebb <sebb...@users.noreply.github.com>
AuthorDate: Sat Jan 6 01:39:40 2024 +0000

    Don't be greedy
---
 www/status/monitors/public_json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/status/monitors/public_json.rb 
b/www/status/monitors/public_json.rb
index 27545832..33def371 100644
--- a/www/status/monitors/public_json.rb
+++ b/www/status/monitors/public_json.rb
@@ -47,7 +47,7 @@ def Monitor.public_json(previous_status)
 
       # Ignore Ruby warnings, e.g.:
       # /usr/lib/ruby/2.7.0/net/protocol.rb:66: warning: previous definition 
of ProtocRetryError was here
-      contents.gsub!(%r{^(/usr|/var)\S+\.rb:\d+: warning: .*\n}, '')
+      contents.gsub!(%r{^(/usr|/var)\S+\.rb:\d+: warning: .*?\n}, '')
 
       # diff -u output: (may have additional \n at end)
       if contents.gsub!(/^--- .*?\n\n?(\n|\Z)/m, '')

Reply via email to