We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e45caf commit 761bd07Copy full SHA for 761bd07
lua/rest-nvim/utils/init.lua
@@ -93,7 +93,7 @@ end
93
M.get_node_value = function(node, bufnr)
94
local start_row, start_col, _, end_col = node:range()
95
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
+ return line and string.sub(line, start_col + 1, end_col):gsub('^["\'](.*)["\']$', '%1') or nil
97
end
98
99
M.read_document_variables = function()
0 commit comments