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

fixed \r issue #2

Merged
merged 1 commit into from
Feb 6, 2018
Merged

fixed \r issue #2

merged 1 commit into from
Feb 6, 2018

Conversation

irrationalRock
Copy link
Contributor

This PR fixs the bug of \r persisting during file issue.

What I did was replace .split("\n") with .match(/[^\r\n]+/g).

It gets rid of the \r and still reproduces the same behavior as before.

I also replace let with var and commented out console.log(validPhones);.

Thanks for considering this request.

@mon369 mon369 merged commit 787fe17 into mon369:master Feb 6, 2018
@irrationalRock irrationalRock deleted the fix-post branch February 19, 2018 21:23
@irrationalRock irrationalRock restored the fix-post branch February 19, 2018 21:23
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