Skip to content

Commit bffe68c

Browse files
authored
Merge branch 'main' into main
2 parents 5e51ce8 + ac57ede commit bffe68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extract_snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def extract_tests(filepath):
1212
filepath_short = os.path.basename(filepath)
1313
article_name = filepath_short.split('.')[0]
1414

15-
snippet_start = re.compile(r"^```\{.cpp\s+file=(\S+)\}$")
15+
snippet_start = re.compile(r"^\s*```\{.cpp\s+file=(\S+)\}$")
1616
snippet_end = re.compile(r"^```$")
1717

1818
with open(filepath) as f:

0 commit comments

Comments
 (0)