Skip to content

Commit

Permalink
Fix regex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebutts committed Jul 8, 2024
1 parent 57a6248 commit 07490d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/positron-code-cells/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getJupyterMarkdownCellText(cell: Cell, document: vscode.TextDocument):
// Spaces can not occur before #
const pythonIsCellStartRegExp = new RegExp(/^#\s*%%/);
const pythonMarkdownRegExp = new RegExp(/^#\s*%%[^[]*\[markdown\]/);
const rIsCellStartRegExp = new RegExp(/^#\s+(%%|\+)/);
const rIsCellStartRegExp = new RegExp(/^#\s*(%%|\+)/);

// TODO: Expose an API to let extensions register parsers
const pythonCellParser: CellParser = {
Expand Down

0 comments on commit 07490d8

Please sign in to comment.