Skip to content

Commit

Permalink
fix: allow _ in shell naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jan 16, 2023
1 parent c69cc4d commit 16d30ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const configureAndListen = async (

if (req.query.format === 'shell') {
for (const secretKey of Object.keys(secretsToSend)) {
if (!/^[A-Za-z][A-Za-z0-9]+$/i.test(secretKey)) {
if (!/^[A-Za-z][A-Za-z0-9_]+$/i.test(secretKey)) {
req.log.error(
`Shell format was requested but the "${secretKey}" key is not compatible with shell variable naming`,
);
Expand Down

0 comments on commit 16d30ea

Please sign in to comment.