From a8644a2eaffdb6bcb9b27be4bc75d231d23793fa Mon Sep 17 00:00:00 2001 From: stoddabr Date: Wed, 8 Nov 2023 11:36:12 -0800 Subject: [PATCH] fix: avoid stripping out full path if file extension not included --- packages/common/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 0f8a32e..43f9dd5 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -61,7 +61,7 @@ export const getNotebookPath = (): string => { if (isGitRefSpecified()) { // Strip the file extension from the notebook path. - return localNotebookPath.split('.').slice(0, -1).join('.') + return localNotebookPath.split('.').slice(0, -1).join('.') || localNotebookPath } else { return localNotebookPath }