Skip to content

Commit

Permalink
Merge pull request #14 from gjsjohnmurray/moccasin-flamingo
Browse files Browse the repository at this point in the history
Method names can contain numerics (fixes #12)
  • Loading branch information
gjsjohnmurray authored Jun 10, 2023
2 parents f4e7654 + 49af9e8 commit a1577dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debugTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class DebugTracker implements vscode.DebugAdapterTracker {
const line: string = (message.body.output as string).replace(/\n/, '');
this.run.appendOutput(line + '\r\n');
if (this.className === undefined) {
const classBegin = line.match(/^ ([%\dA-Za-z][\dA-Za-z\.]*) begins \.\.\.$/);
const classBegin = line.match(/^ ([%\dA-Za-z][\dA-Za-z0-9\.]*) begins \.\.\./);
if (classBegin) {
this.className = classBegin[1];
}
Expand All @@ -70,7 +70,7 @@ export class DebugTracker implements vscode.DebugAdapterTracker {
}

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

0 comments on commit a1577dc

Please sign in to comment.