Closed regdomain closed 3 months ago
As '%O' may be '-' e.g. in case of a response with status 204 the regex should contain not '[0-9]+' but '[0-9]+|-' or '\d+|-' instead as you do for 'responseBytes': https://github.com/kassner/log-parser/blob/b0f21068f324b322d48785e482ca5fdbef02789f/src/LogParser.php#L42 The same probably applies to '%I' 'receivedBytes': https://github.com/kassner/log-parser/blob/b0f21068f324b322d48785e482ca5fdbef02789f/src/LogParser.php#L43
Thank you for the report.
Support was added on 2.2.0.
As '%O' may be '-' e.g. in case of a response with status 204 the regex should contain not '[0-9]+' but '[0-9]+|-' or '\d+|-' instead as you do for 'responseBytes': https://github.com/kassner/log-parser/blob/b0f21068f324b322d48785e482ca5fdbef02789f/src/LogParser.php#L42 The same probably applies to '%I' 'receivedBytes': https://github.com/kassner/log-parser/blob/b0f21068f324b322d48785e482ca5fdbef02789f/src/LogParser.php#L43