Address part of packet names is in hex

This commit is contained in:
Deon George 2023-11-22 16:46:52 +11:00
parent 5f11f81be3
commit fbcbe2c5a8

View File

@ -45,7 +45,7 @@ class PacketInfo extends Command
if ($this->argument('ftn')) {
$a = Address::findFTN($this->argument('ftn'));
} elseif (preg_match('/^(([0-9]+)-)+/',$this->argument('file'),$m)) {
} elseif (preg_match('/^(([0-9A-F]+)-)+/',$this->argument('file'),$m)) {
$a = Address::findOrFail(hexdec($m[2]));
}