aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/expand_tabs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/expand_tabs.rb b/misc/expand_tabs.rb
index c4f6fda1cc..7b3bff78ff 100755
--- a/misc/expand_tabs.rb
+++ b/misc/expand_tabs.rb
@@ -24,9 +24,9 @@ class Git
# [0, 1, 4, ...]
def updated_lines(file)
lines = []
- revs_pattern = /\A0{40} /
+ revs_pattern = ("0"*40) + " "
with_clean_env { IO.popen(['git', 'blame', '-l', '--', file], &:readlines) }.each_with_index do |line, index|
- if revs_pattern =~ line
+ if line.b.start_with?(revs_pattern)
lines << index
end
end