Skip to content

Commit 3627d53

Browse files
committed
fixed regex
1 parent edc83e4 commit 3627d53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/jupyter/common/cellHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TextDocument, Range } from 'vscode';
33
import { JupyterCodeLensProvider } from '../editorIntegration/codeLensProvider';
44
import * as vscode from 'vscode';
55

6-
const CellIdentifier = /^(# %%|#%%|# \<codecell\>|# In\[\d*\]|# In\[ \])(.*)/i;
6+
const CellIdentifier = /^(# %%|#%%|# \<codecell\>|# In\[\d*?\]|# In\[ \])(.*)/i;
77

88
export class CellHelper {
99
constructor(private cellCodeLenses: JupyterCodeLensProvider) {

src/client/jupyter/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class JupyterProvider {
88
* @memberOf LanguageProvider
99
*/
1010
get cellIdentifier(): RegExp {
11-
return /^(# %%|#%%|# \<codecell\>|# In\[\d?\]|# In\[ \])(.*)/i;
11+
return /^(# %%|#%%|# \<codecell\>|# In\[\d*?\]|# In\[ \])(.*)/i;
1212
}
1313

1414
/**

0 commit comments

Comments
 (0)