From b3ce6fa099b2fdb330d19372ab1a51fd7c97fc51 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 30 Apr 2020 11:44:09 +0900 Subject: [PATCH] [ruby/irb] Relaxed regexp for readline Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline. --- test/irb/test_cmd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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