From 6da8f04e01fd85e54a641c6ec4816153b9557095 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 1 Mar 2024 14:51:57 -0500 Subject: [PATCH] [ruby/irb] Escape closing square brackets in regexp Fixes the following warning: test/irb/test_command.rb:546: warning: regular expression has ']' without escape https://github.com/ruby/irb/commit/7efadc243b --- test/irb/test_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/irb/test_command.rb b/test/irb/test_command.rb index d6c8c534f9..5c65a72ee9 100644 --- a/test/irb/test_command.rb +++ b/test/irb/test_command.rb @@ -543,7 +543,7 @@ module TestIRB ) assert_empty err - assert_match(/\[#, #]\n/, out) + assert_match(/\[#, #\]\n/, out) end end