From 8b89b2c6b92cfb17ff7be3db23c416c5f94c6dc7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Feb 2015 15:04:45 +0000 Subject: runruby.rb: update pattern * tool/runruby.rb: no space may be after RUBY_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/runruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/runruby.rb b/tool/runruby.rb index 656aebe43b..ea1cb87aa6 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -47,7 +47,7 @@ abs_archdir = File.expand_path(archdir) $:.unshift(abs_archdir) config = File.read(conffile = File.join(abs_archdir, 'rbconfig.rb')) -config.sub!(/^(\s*)RUBY_VERSION\s.*(\sor\s*)$/, '\1true\2') +config.sub!(/^(\s*)RUBY_VERSION\b.*(\sor\s*)$/, '\1true\2') config = Module.new {module_eval(config, conffile)}::RbConfig::CONFIG ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT']) -- cgit v1.2.3