From: Ian Hilt Date: Tue, 24 Jun 2008 20:36:12 GMT Subject: Re: [PATCH] pre-commit hook should ignore carriage returns at EOL Message-ID: In-Reply-To: <200806242209.07135.jnareb@gmail.com> 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