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 cd6815d commit e0f023eCopy full SHA for e0f023e
lua/rest-nvim/utils/init.lua
@@ -65,7 +65,7 @@ end
65
M.replace_vars = function(str)
66
local vars = M.read_variables()
67
68
- for var in string.gmatch(str, "{{[%w%W]+}}") do
+ for var in string.gmatch(str, "{{[^}]+}}") do
69
var = var:gsub("{", ""):gsub("}", "")
70
-- If the env variable wasn't found in the `.env` file or in the dynamic variables then search it
71
-- in the OS environment variables
0 commit comments