Usunięcie plików .DS_Store oraz poprawa wzorca analizy adresu Paczkomatu w funkcji parsePaczkomatAddress
This commit is contained in:
BIN
autoload/.DS_Store
vendored
BIN
autoload/.DS_Store
vendored
Binary file not shown.
BIN
autoload/front/.DS_Store
vendored
BIN
autoload/front/.DS_Store
vendored
Binary file not shown.
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 [
|
||||||
|
|||||||
BIN
templates/.DS_Store
vendored
BIN
templates/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user