Re: [PATCH] pre-commit hook should ignore carriage returns at EOL
From: Ian Hilt <hidden> Date: 2016-06-15 22:44:49
On Tue, 24 Jun 2008 at 10:09pm +0200, Jakub Narebski wrote:
Unfortunately \r matches \s (is whitespace), so if line ends with CR LF
("\r\n") it wouldn't match first regexp, so it would go to 'else'
clause, where it would match /\s$/ and it shouldn't.
Right. Sorry for the noise.
--
Ian Hilt
Ian.Hilt (at) gmx.com
GnuPG key: 0x4AFC1EE3