aboutsummaryrefslogtreecommitdiffstats
path: root/tool/change_maker.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-24 06:32:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-24 06:32:53 +0000
commitbb512fddae11a5983c2375b7ff69437f5ebeb2e2 (patch)
treed22c8130a0315668575c2da012b83de0a33c44e4 /tool/change_maker.rb
parentc5652b900823a00e1f7cccfbad62b9354e812d0f (diff)
downloadruby-bb512fddae11a5983c2375b7ff69437f5ebeb2e2.tar.gz
* tool/change_maker.rb: line number may not present.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/change_maker.rb')
-rwxr-xr-xtool/change_maker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/change_maker.rb b/tool/change_maker.rb
index b83b98428c..d1b29d64e9 100755
--- a/tool/change_maker.rb
+++ b/tool/change_maker.rb
@@ -7,7 +7,7 @@ def diff2index(cmd, *argv)
case line
when /^Index: (\S*)/, /^diff --git [a-z]\/(\S*) [a-z]\/\1/
path = $1
- when /^@@\s*-\d+,\d+ +\+(\d+),\d+\s*@@(?: +([A-Za-z_][A-Za-z_0-9 ]*[A-Za-z_0-9]))?/
+ when /^@@\s*-[,\d]+ +\+(\d+)[,\d]*\s*@@(?: +([A-Za-z_][A-Za-z_0-9 ]*[A-Za-z_0-9]))?/
line = $1.to_i
ent = "* #{path}"
ent << " (#{$2})" if $2