[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:
parent
70de3b170b
commit
6da8f04e01
@ -543,7 +543,7 @@ module TestIRB
|
||||
)
|
||||
|
||||
assert_empty err
|
||||
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>]\n/, out)
|
||||
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>\]\n/, out)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user