Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger committed Aug 15, 2024
1 parent e3f0adc commit 4d40280
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function createEditorLabel(options: ITextEditorOptions | undefined, resource: UR
return 'REPL';
}

const match = new RegExp('Untitled-(\d)').exec(resource.path);
const match = new RegExp('Untitled-(\\d+)\.').exec(resource.path);
if (match?.length === 2) {
return `REPL - ${match[1]}`;
}
Expand Down

0 comments on commit 4d40280

Please sign in to comment.