Skip to content

Commit a1577dc

Browse files
Merge pull request #14 from gjsjohnmurray/moccasin-flamingo
Method names can contain numerics (fixes #12)
2 parents f4e7654 + 49af9e8 commit a1577dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/debugTracker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class DebugTracker implements vscode.DebugAdapterTracker {
5757
const line: string = (message.body.output as string).replace(/\n/, '');
5858
this.run.appendOutput(line + '\r\n');
5959
if (this.className === undefined) {
60-
const classBegin = line.match(/^ ([%\dA-Za-z][\dA-Za-z\.]*) begins \.\.\.$/);
60+
const classBegin = line.match(/^ ([%\dA-Za-z][\dA-Za-z0-9\.]*) begins \.\.\./);
6161
if (classBegin) {
6262
this.className = classBegin[1];
6363
}
@@ -70,7 +70,7 @@ export class DebugTracker implements vscode.DebugAdapterTracker {
7070
}
7171

7272
if (this.testMethodName === undefined) {
73-
const methodBegin = line.match(/^ Test([%\dA-Za-z][\dA-Za-z]*).* begins \.\.\.$/);
73+
const methodBegin = line.match(/^ Test([\dA-Za-z0-9]+).* begins \.\.\./);
7474
if (methodBegin) {
7575
this.testMethodName = methodBegin[1];
7676
this.methodTest = this.methodTestMap.get(`${this.testingIdBase}:${this.className}:Test${this.testMethodName}`);

0 commit comments

Comments
 (0)