diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-03-01 14:51:57 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-03-01 19:57:11 +0000 |
commit | 6da8f04e01fd85e54a641c6ec4816153b9557095 (patch) | |
tree | 8c3680c5ced8d8f90f802c510ba08ec0ece6cfe0 | |
parent | 70de3b170bc87aa8ea924602dcea3bb58b4fe439 (diff) |
[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
-rw-r--r-- | test/irb/test_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>]\n/, out) + assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>\]\n/, out) end end |