Zaktualizowano wyrażenie regularne w funkcji parsePaczkomatAddress, aby poprawnie obsługiwało znaki myślnika w kodzie pocztowym.
This commit is contained in:
2
cron.php
2
cron.php
@@ -54,7 +54,7 @@ $sellasist_settings = \admin\factory\Integrations::sellasist_settings();
|
|||||||
|
|
||||||
function parsePaczkomatAddress($input)
|
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)) {
|
if (preg_match($pattern, $input, $matches)) {
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user