Skip to content

Commit 7efadc2

Browse files
committed
Escape closing square brackets in regexp
Fixes the following warning: test/irb/test_command.rb:546: warning: regular expression has ']' without escape
1 parent 61560b9 commit 7efadc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/irb/test_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def test_workspaces_returns_the_stack_of_workspaces
543543
)
544544

545545
assert_empty err
546-
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>]\n/, out)
546+
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>\]\n/, out)
547547
end
548548
end
549549

0 commit comments

Comments
 (0)