Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to trim a prefix from env variables #6

Merged
merged 1 commit into from
Feb 14, 2019
Merged

feat: add option to trim a prefix from env variables #6

merged 1 commit into from
Feb 14, 2019

Conversation

latonz
Copy link
Contributor

@latonz latonz commented Feb 14, 2019

No description provided.

@latonz latonz changed the title feat(prepare): add option to trim a prefix from env variables feat: add option to trim a prefix from env variables Feb 14, 2019
@buehler
Copy link
Contributor

buehler commented Feb 14, 2019

Awesome :)

.filter(n => n.startsWith(prefix))
.map(n => n.substr(prefix.length))
.forEach(n => process.env[n] = process.env[prefix + n]);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one thing... please add a new-line here :-)

@buehler buehler merged commit b9d685d into smartive:master Feb 14, 2019
@smartive-ci
Copy link

🎉 This PR is included in version 4.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants