cleanup suffix match regex

This commit is contained in:
Viktor Szakats 2025-07-10 11:51:20 +02:00
parent 70bbd7b598
commit 570db473e8
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;