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

Initialize undefined environment variable properly #266

Merged
merged 1 commit into from
Dec 19, 2015
Merged

Initialize undefined environment variable properly #266

merged 1 commit into from
Dec 19, 2015

Conversation

akfish
Copy link
Contributor

@akfish akfish commented Dec 19, 2015

Fields of process.env could be undefined in some environment (for example, mine):
image

This will cause the following error:
err

It can be fixed by simply initializing replace's value parameter with empty string by default.

@noseglid
Copy link
Owner

Thanks you!

noseglid added a commit that referenced this pull request Dec 19, 2015
Initialize undefined environment variable properly
@noseglid noseglid merged commit 10525f1 into noseglid:master Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants