Skip to content

Commit 96078a6

Browse files
committed
Clarify comment full line fragment identifier regex option
1 parent 08523dd commit 96078a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function extractFragmentContent(text, fragment, fullLine) {
2222
let fragmentRegex = `(?:###|\\/\\/\\/)\\s*\\[${fragment}\\]`;
2323
const contentRegex = `[\\s\\S]*?`;
2424
if (fullLine) {
25-
// Match full line for fragment
25+
// Match full line containing fragment identifier (e.g. /// [demo])
2626
fragmentRegex = `.*${fragmentRegex}.*\n`;
2727
}
2828
const pattern = new RegExp(

0 commit comments

Comments
 (0)