patch-package
patch-package copied to clipboard
fix Patch file parse error in windows
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".
Hi @ds300 Could you merge this PR ASAP, please?
Hello @ds300 Could you merge this PR ASAP, please~~
Yeah, this makes sense to me
This was just released in v6.5.0! Thanks for your contribution 🙏🏼 🎉