Commit e3fed8aa authored by Valeriy Sizov's avatar Valeriy Sizov

InlineDiff: fix bug "unmatched close parenthesis"

parent 00bc0e25
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment