Skip to content

Commit

Permalink
Merge pull request #112 from nextcloud/ShGKme-patch-2
Browse files Browse the repository at this point in the history
fix(spdx-converter): glob processing of *
  • Loading branch information
AndyScherzinger authored Jul 23, 2024
2 parents 8c76bef + 5585118 commit 2e091f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spdx-convertor/convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2e091f9

Please sign in to comment.