diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-30 11:44:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-30 11:44:22 +0900 |
commit | b3ce6fa099b2fdb330d19372ab1a51fd7c97fc51 (patch) | |
tree | a6a12b3fb985347f7a8e6ea3bddd61d8ad9a86dd /test | |
parent | 7e5253d15ea1d2cdfc7942213f9c7ba79c3eda2b (diff) | |
download | ruby-b3ce6fa099b2fdb330d19372ab1a51fd7c97fc51.tar.gz |
[ruby/irb] Relaxed regexp for readline
Readline::VERSION may not be a single word, e.g EditLine wrapper
when linked with editline.
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_cmd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 7a9e7d79e1..92b65dd5d0 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -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 |