mirror of
https://github.com/curl/curl.git
synced 2026-06-05 15:34:16 +03:00
cleanup suffix match regex
This commit is contained in:
parent
70bbd7b598
commit
570db473e8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue