Skip to content

Commit e4a9186

Browse files
committed
this isn't python
1 parent f910b78 commit e4a9186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/scripts/notebooks/notebooks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function parse_cells(qmd_path::String)::Notebook
116116
lang = match.captures[1]
117117
code = strip(match.captures[2])
118118
if lang == "julia"
119-
if "#| eval: false" in code
119+
if occursin(r"#|\s*eval:\s*false", code)
120120
# This is a code cell that is not meant to be executed.
121121
push!(cells, MarkdownCell("```julia\n$code\n```"))
122122
continue

0 commit comments

Comments
 (0)