Skip to content

Commit

Permalink
[ruby/irb] Relaxed regexp for readline
Browse files Browse the repository at this point in the history
Readline::VERSION may not be a single word, e.g EditLine wrapper
when linked with editline.
  • Loading branch information
nobu committed Apr 30, 2020
1 parent 7e5253d commit b3ce6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irb/test_cmd.rb
Expand Up @@ -101,7 +101,7 @@ def test_irb_info_singleline_without_rc_files
expected = %r{
Ruby\sversion: .+\n
IRB\sversion:\sirb .+\n
InputMethod:\sReadlineInputMethod\swith\s[^ ]+\s[^ ]+(?!\sand\s.+)\n
InputMethod:\sReadlineInputMethod\swith\s(?~.*\sand\s.+)\n
\z
}x
assert_match expected, irb.context.main.irb_info.to_s
Expand Down

0 comments on commit b3ce6fa

Please sign in to comment.