mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Relaxed regexp for readline
Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline.
This commit is contained in:
parent
7e5253d15e
commit
b3ce6fa099
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ module TestIRB
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue