summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-31 15:04:34 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-31 15:04:34 (GMT)
commita517e6f9e32b99d94afec9add6b91e36639af11a (patch)
tree965d02b154d83b13e268911ad55b4f7a944f39a6 /tool
parentc55bcb9c437bb3df2dcbbae65fab0fdf758e9cbc (diff)
* tool/merger.rb (version): version number may be two-digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/merger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/merger.rb b/tool/merger.rb
index bc9e9c1..c7d8e0f 100755
--- a/tool/merger.rb
+++ b/tool/merger.rb
@@ -47,7 +47,7 @@ def version
open 'version.h', 'rb' do |f|
f.each_line do |l|
case l
- when /^#define RUBY_VERSION "(\d)\.(\d)\.(\d)"$/
+ when /^#define RUBY_VERSION "(\d+)\.(\d+)\.(\d+)"$/
v = $~.captures
when /^#define RUBY_PATCHLEVEL (-?\d+)$/
p = $1