Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2a079ff

Browse files
committed
fix: images regex
1 parent 6fd5628 commit 2a079ff

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lua/leetcode-ui/split/description.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function Description:draw_imgs()
7575

7676
local lines = vim.api.nvim_buf_get_lines(self.bufnr, 1, -1, false)
7777
for i, line in ipairs(lines) do
78-
for link in line:gmatch("->%((http[s]?://%S+)%)") do
78+
for link in line:gmatch("%((http[s]?://%S+)%)") do
7979
local img = self.images[link]
8080

8181
if not img then

lua/leetcode/api/utils.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ function utils.handle_res(out)
122122
msg = "http error " .. out.status .. (ok and ("\n\n" .. msg) or ""),
123123
out = out.body,
124124
}
125-
126-
log.info(err)
127125
else
128126
res = utils.decode(out.body)
129127
end

0 commit comments

Comments
 (0)