From c840c97e23bf05540b39762415eaf67d20ebd740 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Wed, 16 Apr 2025 08:26:23 +0200 Subject: [PATCH] =?UTF-8?q?Zaktualizowano=20wyra=C5=BCenie=20regularne=20w?= =?UTF-8?q?=20funkcji=20parsePaczkomatAddress,=20aby=20poprawnie=20obs?= =?UTF-8?q?=C5=82ugiwa=C5=82o=20znaki=20my=C5=9Blnika=20w=20kodzie=20poczt?= =?UTF-8?q?owym.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.php b/cron.php index 82d6056..ad08ca0 100644 --- a/cron.php +++ b/cron.php @@ -54,7 +54,7 @@ $sellasist_settings = \admin\factory\Integrations::sellasist_settings(); function parsePaczkomatAddress($input) { - $pattern = '/^(\w+)\s+\|\s+([^,]+),\s+(\d{2}-\d{3})\s+(.+)$/'; + $pattern = '/^([\w-]+)\s+\|\s+([^,]+),\s+(\d{2}-\d{3})\s+(.+)$/'; if (preg_match($pattern, $input, $matches)) { return [