From 570db473e88bf0f714ff701e6f245205e414336d Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 10 Jul 2025 11:51:20 +0200 Subject: [PATCH] cleanup suffix match regex --- scripts/checksrc-all.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checksrc-all.pl b/scripts/checksrc-all.pl index 0b579567a3..08ff6cfbf5 100755 --- a/scripts/checksrc-all.pl +++ b/scripts/checksrc-all.pl @@ -15,10 +15,10 @@ if(system('git rev-parse --is-inside-work-tree >/dev/null 2>&1') == 0) { @files = `git ls-files '*.[ch]'`; } else { - find(sub { if(/\.[ch]/) { push(@files, $File::Find::name) } }, ('.')); + find(sub { if(/\.[ch]$/) { push(@files, $File::Find::name) } }, ('.')); } if(@ARGV) { - find(sub { if(/\.[ch]/) { push(@files, $File::Find::name) } }, @ARGV); + find(sub { if(/\.[ch]$/) { push(@files, $File::Find::name) } }, @ARGV); } @files = grep !/\/CMakeFiles\//, @files;