From 1ff283f643cb3e7fcf2f07ea2015daa6ee24afbe Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 16 Nov 2023 10:41:54 +0000 Subject: [PATCH] fix: allow skus with ':'s --- .../Command/Input/GetReservationFromCompensationArgument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php b/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php index 3d5731f9675f..3276f996d0b9 100644 --- a/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php +++ b/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php @@ -69,7 +69,7 @@ public function __construct( */ private function parseArgument(string $argument): array { - $pattern = '/(?P.*):(?P.*):(?P.*):(?P.*)/'; + $pattern = '/(?P\d*):(?P.*):(?P.*):(?P.*)/'; if (preg_match($pattern, $argument, $match)) { return $match; }