Re: [PATCH] pre-commit hook should ignore carriage returns at EOL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Tuesday, June 24, 2008 - 1:09 pm

On Tue, 24 Jun 2008, Ian Hilt 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.

-- 
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pre-commit hook should ignore carriage returns at EOL, Christian Holtje, (Tue Jun 24, 9:23 am)
Re: [PATCH] pre-commit hook should ignore carriage returns ..., Christian Holtje, (Tue Jun 24, 12:16 pm)
Re: [PATCH] pre-commit hook should ignore carriage returns ..., Jakub Narebski, (Tue Jun 24, 1:09 pm)