summaryrefslogtreecommitdiff
path: root/tool/change_maker.rb
diff options
context:
space:
mode:
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