mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-12 02:00:43 +02:00
contrib/checkpatch: properly determine the commit id boundary
It doesn't have to be at the end of line, there may be more words
following.
Fixes: d66a1ace23 ('contrib/checkpatch: avoid command injection in checkpatch.pl script')
This commit is contained in:
parent
008a4b4215
commit
f3f8e21bd3
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ sub check_commit
|
|||
my $commit_id;
|
||||
my $commit_message;
|
||||
|
||||
if ($commit =~ /^([0-9a-f]{5,})$/) {
|
||||
if ($commit =~ /^([0-9a-f]{5,})\b/) {
|
||||
$commit_id = $1;
|
||||
} else {
|
||||
return unless $required;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue