summaryrefslogtreecommitdiff
path: root/tool/runruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/runruby.rb')
-rwxr-xr-xtool/runruby.rb2
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'])