diff options
-rwxr-xr-x | tool/mkconfig.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index 7919aec736..fc91ddec3f 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -171,7 +171,7 @@ puts %[\ # changes made to this file will be lost the next time ruby is built. module RbConfig - RUBY_VERSION.start_with?("#{version}"[/^[0-9]+[.][0-9]+[.]/]) or + RUBY_VERSION.start_with?("#{version[/^[0-9]+\.[0-9]+\./] || version}") or raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})" ] |