Skip to content

Commit 85737e9

Browse files
authored
fix: Use backticks in code suggestions (#292)
fix: Use backticks in code suggestions (#292)
1 parent 81d7f0c commit 85737e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/gitlab/actions/comment.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ local build_suggestion = function()
284284
local backticks = "```"
285285
local selected_lines = u.get_lines(M.start_line, M.end_line)
286286

287-
for line in ipairs(selected_lines) do
288-
if string.match(line, "^```$") then
287+
for _, line in ipairs(selected_lines) do
288+
if string.match(line, "^```%S*$") then
289289
backticks = "````"
290290
break
291291
end

0 commit comments

Comments
 (0)