From ec0d767df8583aa57a2f99be9280d080d0d5bb90 Mon Sep 17 00:00:00 2001 From: Charles Kenney Date: Thu, 8 Nov 2018 20:53:54 -0500 Subject: [PATCH] fix testname regex (#2072) Signed-off-by: Charles Kenney --- src/testUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testUtils.ts b/src/testUtils.ts index c73410361..4167927d4 100644 --- a/src/testUtils.ts +++ b/src/testUtils.ts @@ -24,9 +24,9 @@ statusBarItem.text = '$(x) Cancel Running Tests'; */ const runningTestProcesses: cp.ChildProcess[] = []; -const testFuncRegex = /^Test.+|^Example.+/; +const testFuncRegex = /^Test.*|^Example.*/; const testMethodRegex = /^\(([^)]+)\)\.(Test.*)$/; -const benchmarkRegex = /^Benchmark.+/; +const benchmarkRegex = /^Benchmark.*/; /** * Input to goTest.