diff options
author | June McEnroe <june@causal.agency> | 2021-09-11 15:11:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-11 15:11:48 -0400 |
commit | 9d3e8a88a0d06310ff0a9309a5439ab97b8f922f (patch) | |
tree | 467b882efc00c6caf80a5fce923c5df776db3eaa | |
parent | Publish "git-comment" (diff) | |
download | src-9d3e8a88a0d06310ff0a9309a5439ab97b8f922f.tar.gz src-9d3e8a88a0d06310ff0a9309a5439ab97b8f922f.zip |
Also defer printing comment for lone close-parens
-rw-r--r-- | bin/git-comment.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl index 27a06998..71149b8d 100644 --- a/bin/git-comment.pl +++ b/bin/git-comment.pl @@ -74,7 +74,7 @@ while (<$pipe>) { $message{$commit} = \@message; } elsif (/^\t(\s*)(.*)/) { my ($indent, $line) = ($1, $2); - unless ($printed || $line =~ /^}?;?$/) { + unless ($printed || $line =~ /^[})]?;?$/) { $printed = 1; if ( $group >= $minGroup && |