-
Notifications
You must be signed in to change notification settings - Fork 506
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
Regression in 2.3 : new parsing of multiline values breaks other things #341
Comments
Thank you for the bug report. Looking into potential solutions now. |
5 tasks
We just shipped version 2.4.0 which removes the |
Closed
thanks for the super quick resolution! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commit aaabca8 (PR #318 - parse multiline values), which is part of dotenv v2.3.0, causes a significant regression in parsing, affecting both commented lines and lines ending in equals.
Steps to reproduce
Consider this sample .env file (./sampleenv):
Expected behavior
Gemfile:
gem 'dotenv', github: 'bkeepers/dotenv', ref: 'b44474f'
Before aaabca8:
Actual behavior
Gemfile:
gem 'dotenv', github: 'bkeepers/dotenv', ref: 'aaabca8'
After aaabca8:
As you can see, multiline is causing any line to eat the '#' at the beginning of the next line, causing that line to be treated as uncommented.
Additionally, any line ending in = ends up wrapping to the next line instead of returning an empty value as it did previously.
System configuration
dotenv 2.3.0
rails 5.2.0
ruby 2.5.1
The text was updated successfully, but these errors were encountered: