Skip to content

Commit 60a46e9

Browse files
committed
Fixed tool change count to ignore comments #31
1 parent de85d1a commit 60a46e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/statsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class StatsView extends GView<StatsNode> {
249249
}
250250

251251
private updateToolChanges(text: string): boolean {
252-
const re = /(M0?6)/gim;
252+
const re = /^[^;(]*(M0?6)/gim;
253253
const num = text.match(re)?.length || 0;
254254

255255
this._stats.toolchanges = num;

0 commit comments

Comments
 (0)