diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-05-17 19:48:45 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-05-20 16:31:52 +0200 |
commit | f3f8e21bd31a64e994a3cabeedea5242674f7f3c (patch) | |
tree | b856115502271494f8ea723c06e7e25e6ffb29e0 | |
parent | 008a4b4215dcce40345b2c372ffc8cfd0d388fa5 (diff) | |
download | NetworkManager-f3f8e21bd31a64e994a3cabeedea5242674f7f3c.tar.gz |
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: d66a1ace23c5 ('contrib/checkpatch: avoid command injection in checkpatch.pl script')
-rwxr-xr-x | contrib/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 43ea45e833..016ec8bf64 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -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; |