blueicefield/PHP_CodeSniffer_GIT_Hook — pull request #1 by ruben81 (2012-08-10 00:44:33+00:00)
Title: Fixes bug if commited file contains a very generic name

This commit fixes an issue:

If the name of the file is very generic (for example 'a') the grep that is used to find the object id will match with any file in the system that contains an 'a' in the path. Filtering by a stricter regex, fixes this issue.