Skip to content

Commit

Permalink
[import] trim ID whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky committed Jan 16, 2025
1 parent ed74f83 commit 8f3813e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Importers/UpmImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function getItemImageFilenameFormat(array $record): string
{
return str($record['ID'])
->explode('_')
->transform(fn ($part) => '0*' . preg_quote($part))
->transform(fn ($part) => '0*' . preg_quote(trim($part)))
->join('_') . '(_.*)?';
}

Expand Down

0 comments on commit 8f3813e

Please sign in to comment.