Skip to content

Commit 4159c37

Browse files
awickham10rkeithhill
authored andcommitted
Updated Pester Problem Matcher (#1362)
* Updated pester problem matcher to take into account seconds and remove [-] from the message * ms times were still being included in the message. Updated regex to remove ms from message. * Simplified problem matcher to remove spaces at start of groups 1 and 2, made at least one digit required for time elapsed, and put an optional space after the time elapsed and units.
1 parent f029833 commit 4159c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"severity": "error",
177177
"pattern": [
178178
{
179-
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
179+
"regexp": "^\\s*(?:\\[-\\]\\s+)(.*?)(?:\\s+\\d+\\.?\\d*\\s*m?s)\\s*$",
180180
"message": 1
181181
},
182182
{

0 commit comments

Comments
 (0)