ruby-changes:60944
From: Nobuyoshi <ko1@a...>
Date: Thu, 30 Apr 2020 11:48:26 +0900 (JST)
Subject: [ruby-changes:60944] b3ce6fa099 (master): [ruby/irb] Relaxed regexp for readline
https://git.ruby-lang.org/ruby.git/commit/?id=b3ce6fa099 From b3ce6fa099b2fdb330d19372ab1a51fd7c97fc51 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 30 Apr 2020 11:44:09 +0900 Subject: [ruby/irb] Relaxed regexp for readline Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline. diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 7a9e7d7..92b65dd 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -101,7 +101,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L101 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/