-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Bad management of pairs of braces #49
Comments
Possible solution: Change this line: Line 8 in de9e5cb
By: var matches = envValue.match(/(.?\$(?:{(?:[a-zA-Z0-9_]+)?}|(?:[a-zA-Z0-9_]+)?))/g) || [] |
Coincidentally, the code I wrote in #48 also fixes this issue. The issue was that the original regex was conditionally looking for the curly brackets. Which means that |
This is fixed in the latest version of dotenv and dotenv-expand. |
Input:
TEST_WITH_BRACKET="{ port: $MONGOLAB_PORT}"
Expected:
{ port: 12345}
Actual:
{ port: 12345
The text was updated successfully, but these errors were encountered: