InlineDiff: fix bug "unmatched close parenthesis"
This commit is contained in:
parent
00bc0e2577
commit
e3fed8aaf4
|
@ -34,9 +34,8 @@ module Gitlab
|
||||||
end
|
end
|
||||||
last_the_same_symbols += 1
|
last_the_same_symbols += 1
|
||||||
last_token = first_line[last_the_same_symbols..-1]
|
last_token = first_line[last_the_same_symbols..-1]
|
||||||
|
diff_arr[index+1].sub!(/#{Regexp.escape(last_token)}$/, FINISH + last_token)
|
||||||
diff_arr[index+1].sub!(/#{last_token}$/, FINISH + last_token)
|
diff_arr[index+2].sub!(/#{Regexp.escape(last_token)}$/, FINISH + last_token)
|
||||||
diff_arr[index+2].sub!(/#{last_token}$/, FINISH + last_token)
|
|
||||||
end
|
end
|
||||||
diff_arr
|
diff_arr
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue