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

fix Patch file parse error in windows #301

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

bill2004158
Copy link
Contributor

fix new line for windows.
fix issue for: #191, #207, #266, #268,
maybe also for: #236, #244, #280

in windows, the line break is "\r\n". (while it is "\n" in Linux/Unix).
so after split by "\n",
then first char of blank line will be "\r" for window.

so "Treat blank lines as context" should include "\r".

fix new line for windows
@bill2004158 bill2004158 changed the title Update parse.ts fix Patch file parse error in windows Mar 18, 2021
@v-honcharenko
Copy link

Hi @ds300
Could you merge this PR ASAP, please?

@dianlemel
Copy link

Hello @ds300
Could you merge this PR ASAP, please~~

@orta
Copy link
Collaborator

orta commented Sep 28, 2022

Yeah, this makes sense to me

@orta orta merged commit 9ab4e66 into ds300:master Sep 28, 2022
@ds300
Copy link
Owner

ds300 commented Oct 25, 2022

This was just released in v6.5.0! Thanks for your contribution 🙏🏼 🎉

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.

6 participants