patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

fix Patch file parse error in windows

Open bill2004158 opened this issue 4 years ago • 2 comments

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".

bill2004158 avatar Mar 18 '21 14:03 bill2004158

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

v-honcharenko avatar Jun 18 '21 12:06 v-honcharenko

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

dianlemel avatar Jun 23 '22 06:06 dianlemel

Yeah, this makes sense to me

orta avatar Sep 28 '22 09:09 orta

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

ds300 avatar Oct 25 '22 18:10 ds300