Skip to content

Commit

Permalink
👍 allow hypens in session names
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Nov 22, 2023
1 parent 8a4504c commit 172e836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class ThebeServer implements ServerRuntime, ServerRestAPI {
// https://jupyterlab.readthedocs.io/en/3.4.x/api/modules/services.session.html#isessionoptions
const path = kernelOptions?.path ?? this.config.kernels.path;
let name = 'thebe.ipynb';
const match = path.match(/\/*([a-zA-Z0-9]+.ipynb)$/);
const match = path.match(/\/*([a-zA-Z0-9-]+.ipynb)$/);
if (match) {
name = match[1];
}
Expand Down

0 comments on commit 172e836

Please sign in to comment.