diff --git a/spdx-convertor/convert.php b/spdx-convertor/convert.php index be5076b..09db5cf 100644 --- a/spdx-convertor/convert.php +++ b/spdx-convertor/convert.php @@ -350,7 +350,7 @@ function replaceSwiftCopyright(string $file, bool $isDryRun): array { foreach ($files as $file) { $pathFilter = $file; if (str_contains($file, '*')) { - $pathFilter = '/'. str_replace(['/', '.', '*'], ['\/', '\.', '(.+)'], $file) . '$/i'; + $pathFilter = '/'. str_replace(['/', '.', '*'], ['\/', '\.', '(.*)'], $file) . '$/i'; } $finder->notPath($pathFilter); }