mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-15 22:29:58 +00: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
|
@ -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…
Reference in a new issue