Skip to content

Commit

Permalink
- Support complex keys, such as yaml/json files (hashicorp#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilucodota authored Jan 11, 2021
1 parent 2fb78ab commit 1d4917e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function selectData(data, selector) {
}

if (result.startsWith(`"`)) {
result = result.substring(1, result.length - 1);
result = JSON.parse(result);
}
return result;
}
Expand Down

0 comments on commit 1d4917e

Please sign in to comment.