changed the pre-commit script to exclude repeated punctuation symbols in getting the message length
This commit is contained in:
		| @ -167,6 +167,8 @@ sub check_commit_message | ||||
| 	} | ||||
| 	 | ||||
| 	my $log = $txn->prop ('svn:log'); | ||||
| 	$log =~ s/([[:punct:]]{1,2}\s+){3,}/ /g; | ||||
| 	$log =~ s/[[:punct:]]{3,}/ /g; | ||||
| 	$log =~ s/^\s+|\s+$//g; # trim leading spaces and  trailing spaces | ||||
| 	if (length($log) < $minlen)  | ||||
| 	{ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user