diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-25 15:04:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-25 15:04:45 +0000 |
commit | 8b89b2c6b92cfb17ff7be3db23c416c5f94c6dc7 (patch) | |
tree | 1a10b8f9f36d084632af71ee47588b3168c32af2 /tool | |
parent | 909c4c0fd71603d85312b49dfd6275bac7867b52 (diff) | |
download | ruby-8b89b2c6b92cfb17ff7be3db23c416c5f94c6dc7.tar.gz |
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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/runruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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']) |