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

Parse \r line endings (mac) #414

Merged
merged 5 commits into from Aug 15, 2019
Merged

Conversation

AlexanderGranhof
Copy link
Contributor

@AlexanderGranhof AlexanderGranhof commented Aug 15, 2019

Fixes #409 by finding all three EOL types (\n, \r, \r\n) and replacing it with the NEWLINE variable, currently being the Unix standard.

When i run npm test i get back Error: test count exceeds plan.

I have not used TAP to write tests before but i assume i need a plan to run the tests locally. However if i deliberately break the test it shows a different error, so im assuming the test works.

@maxbeatty

Copy link
Contributor

@maxbeatty maxbeatty left a comment

Choose a reason for hiding this comment

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

Great start! This is close 🚀

lib/main.js Show resolved Hide resolved
tests/test-parse.js Outdated Show resolved Hide resolved
@maxbeatty maxbeatty merged commit 52fe318 into motdotla:master Aug 15, 2019
@maxbeatty
Copy link
Contributor

released in v8.1.0

@nmaxcom
Copy link

nmaxcom commented Oct 8, 2019

I wasted a long time debugging my code 😡

image

@AlexanderGranhof
Copy link
Contributor Author

@nmaxcom
Are you sure your using version 8.1.0 or later?
My pull request fixed your exact issue (i think?) with parsing \r line endings.

@nmaxcom
Copy link

nmaxcom commented Oct 11, 2019

Nope. I created this project a few weeks ago and this is how it stands in my package.json: "dotenv": "^8.0.0"

I am grateful for this package, but I don't understand the low level of parsing up to version 8.1.0

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.

Can't get env ,when Line Separator is CR
3 participants