InlineDiff: fix bug "unmatched close parenthesis"

This commit is contained in:
Valeriy Sizov 2012-07-05 00:57:12 +03:00
parent 00bc0e2577
commit e3fed8aaf4

View file

@ -34,9 +34,8 @@ module Gitlab
end
last_the_same_symbols += 1
last_token = first_line[last_the_same_symbols..-1]
diff_arr[index+1].sub!(/#{last_token}$/, FINISH + last_token)
diff_arr[index+2].sub!(/#{last_token}$/, FINISH + last_token)
diff_arr[index+1].sub!(/#{Regexp.escape(last_token)}$/, FINISH + last_token)
diff_arr[index+2].sub!(/#{Regexp.escape(last_token)}$/, FINISH + last_token)
end
diff_arr
end