log-parser icon indicating copy to clipboard operation
log-parser copied to clipboard

Handle '-' in 'sentBytes' and 'receivedBytes'

Open regdomain opened this issue 11 months ago • 0 comments

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

regdomain avatar Mar 25 '24 16:03 regdomain