Skip to content

Commit

Permalink
Escape closing square brackets in regexp
Browse files Browse the repository at this point in the history
Fixes the following warning:

    test/irb/test_command.rb:546: warning: regular expression has ']' without escape
  • Loading branch information
peterzhu2118 committed Mar 1, 2024
1 parent 61560b9 commit 7efadc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irb/test_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def test_workspaces_returns_the_stack_of_workspaces
)

assert_empty err
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>]\n/, out)
assert_match(/\[#<TestIRB::Workspac...>, #<TestIRB::Workspac...>\]\n/, out)
end
end

Expand Down

0 comments on commit 7efadc2

Please sign in to comment.