Patch by Alexis
Change-Id: I6c69d017d2d6ad1237b0c34ffa8a7ae5fb518178
* @return bool Whether or not the string looks like a SHA1
*/
public static function isSHA1( $str ) {
* @return bool Whether or not the string looks like a SHA1
*/
public static function isSHA1( $str ) {
- return !!preg_match( '/^[0-9A-Z]{40}$/i', $str );
+ return !!preg_match( '/^[0-9A-F]{40}$/i', $str );
return self::repo()->getCurrentBranch();
}
return self::repo()->getCurrentBranch();
}
-}
\ No newline at end of file