Re: [PATCH] pre-commit hook should ignore carriage returns at EOL
- From
- Ian Hilt <ian.hilt@gmx.com>
- Date
- Jun 24, 2008, 20:36 UTC
- Message-ID
- <alpine.LFD.1.10.0806241634590.32759@sys-0.hiltweb.site>
- 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