[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
This commit is contained in:
Peter Zhu 2024-03-01 14:51:57 -05:00 committed by git
parent 70de3b170b
commit 6da8f04e01

View File

@ -543,7 +543,7 @@ module TestIRB
) )
assert_empty err assert_empty err
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>]\n/, out) assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>\]\n/, out)
end end
end end