Skip to content

Commit e6757d0

Browse files
committed
Fix a bug in extract_hints
1 parent 2ac2378 commit e6757d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extract_hints.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for (let name of readdirSync(".")) {
99
let title = file.match(/(?:\n|^)# (.*?)\n/)[1], titleWritten = false
1010

1111
let curSubsection
12-
let re = /\n### (.*?)\n|\{\{hint\n([^]+?)\nhint\}\}/g
12+
let re = /\n### (.*?)\n|\{\{hint\n([^]+?)\nhint\}\}/g, m
1313
while (m = re.exec(file)) {
1414
if (m[1]) {
1515
curSubsection = m[1]

0 commit comments

Comments
 (0)