diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 9202e8d637..5117f0a51f 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -62,7 +62,7 @@ when :revision_h if branch e = '..' limit = 16 - name = branch.sub(/\A(.{0,#{limit-e.size}}).{#{e.size+1},}/o) {$1+e} + name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e} puts "#define RUBY_BRANCH_NAME #{name.dump}" end when :doxygen