From 8f3813e13d71eba3a6b6e7b8ee2bc3c7baa502e3 Mon Sep 17 00:00:00 2001 From: Rastislav Chynoransky Date: Thu, 16 Jan 2025 10:22:51 +0700 Subject: [PATCH] [import] trim ID whitespace --- app/Importers/UpmImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Importers/UpmImporter.php b/app/Importers/UpmImporter.php index 590bb75b1..1c9b33b8e 100644 --- a/app/Importers/UpmImporter.php +++ b/app/Importers/UpmImporter.php @@ -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('_') . '(_.*)?'; }