From 55851182dafa4f25ea9c3f4b3464cf587ba10776 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Thu, 13 Jun 2024 10:19:27 +0200 Subject: [PATCH] fix(spdx-converter): glob processing of * Signed-off-by: Grigorii K. Shartsev --- spdx-convertor/convert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spdx-convertor/convert.php b/spdx-convertor/convert.php index e9e7f95..e0db96a 100644 --- a/spdx-convertor/convert.php +++ b/spdx-convertor/convert.php @@ -344,7 +344,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); }