Skip to content

Commit 761bd07

Browse files
klenNTBBloodbath
authored andcommitted
fix: quotes
1 parent 7e45caf commit 761bd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rest-nvim/utils/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
M.get_node_value = function(node, bufnr)
9494
local start_row, start_col, _, end_col = node:range()
9595
local line = api.nvim_buf_get_lines(bufnr, start_row, start_row + 1, false)[1]
96-
return line and string.sub(line, start_col + 1, end_col):gsub('"', '') or nil
96+
return line and string.sub(line, start_col + 1, end_col):gsub('^["\'](.*)["\']$', '%1') or nil
9797
end
9898

9999
M.read_document_variables = function()

0 commit comments

Comments
 (0)