Skip to content

Commit

Permalink
fix: env var interpolation regex expression (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
purefun committed Aug 20, 2021
1 parent cd6815d commit e0f023e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rest-nvim/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end
M.replace_vars = function(str)
local vars = M.read_variables()

for var in string.gmatch(str, "{{[%w%W]+}}") do
for var in string.gmatch(str, "{{[^}]+}}") do
var = var:gsub("{", ""):gsub("}", "")
-- If the env variable wasn't found in the `.env` file or in the dynamic variables then search it
-- in the OS environment variables
Expand Down

0 comments on commit e0f023e

Please sign in to comment.