File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -356,8 +356,11 @@ function getMirroredPath(original) {
356356 */
357357function parseRequests ( output ) {
358358 const lines = output . split ( / \r ? \n / ) ;
359- const requestHeaderRegex = / ^ v 4 \\ .* \\ ( .+ ?) \( ( \d { 3 } ) [ A - Z a - z ] + \) - ( \d + ) m s $ / ;
360- const requestHeaderRegexAlt = / ^ v 4 \\ .* \\ ( .+ ?) \( ( \d { 3 } ) \) - ( \d + ) m s $ / ; // fallback variant
359+ // Match lines like:
360+ // v4/MasterSchedule/BellSchedules/01 - CREATE a BellSchedule (201 Created) - 907 ms
361+ // or with backslashes on some platforms. Capture groups: (1) filename, (2) statusCode, (3) timeMs
362+ const requestHeaderRegex = / ^ v 4 [ \/ \\ ] .* ?\/ ( [ ^ \/ ] + ) \( ( \d { 3 } ) (?: [ ^ ) ] + ) ? \) - ( \d + ) m s $ / ;
363+ const requestHeaderRegexAlt = / ^ v 4 [ \/ \\ ] .* ?\/ ( [ ^ \/ ] + ) \( ( \d { 3 } ) \) - ( \d + ) m s $ / ; // fallback variant
361364 const requests = [ ] ;
362365 let current = null ;
363366 let inAssertions = false ;
You can’t perform that action at this time.
0 commit comments