ruby-changes:35860
From: akr <ko1@a...>
Date: Wed, 15 Oct 2014 20:29:08 +0900 (JST)
Subject: [ruby-changes:35860] akr:r47942 (trunk): Simplify multiline condition.
akr 2014-10-15 20:28:52 +0900 (Wed, 15 Oct 2014) New Revision: 47942 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47942 Log: Simplify multiline condition. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 47941) +++ test/ruby/envutil.rb (revision 47942) @@ -497,7 +497,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L497 unless match msg = message(msg) { expect_msg = "Expected #{mu_pp pattern}\n" - if /\n[^\n]+\n/ =~ rest + if /\n[^\n]/ =~ rest actual_mesg = "to match\n" rest.scan(/.*\n+/) { actual_mesg << ' ' << $&.inspect << "+\n" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/