endp-pm: Future proof against removing a spurious comma.

This commit is contained in:
Ben Greear
2020-03-10 17:17:36 -07:00
parent a7e74632c3
commit 2c3edf1820

View File

@@ -316,7 +316,7 @@ sub decode {
if ($got_endp) {
if ( $ln =~
/Shelf:\s+(\d+)\,\s+Card:\s+(\d+)\s+Port:\s+(\d+)\s+Endpoint:\s+(\d+)\s+Type:\s+(\S+)\s+Pattern:\s+(\S+)/
/Shelf:\s+(\d+)\,*\s+Card:\s+(\d+)\s+Port:\s+(\d+)\s+Endpoint:\s+(\d+)\s+Type:\s+(\S+)\s+Pattern:\s+(\S+)/
)
{
$self->shelf_id($1);