We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd03cc commit 413ee2bCopy full SHA for 413ee2b
src/helpers/comment-parser.ts
@@ -2,7 +2,7 @@ import fm from 'front-matter';
2
3
const parseComment = (fileContent: string) => {
4
try {
5
- const allCommentBlocks = fileContent.match(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/g);
+ const allCommentBlocks = fileContent.match(/\/*[\s\S]*\/.*/g);
6
const vuepressBlock = allCommentBlocks?.filter((block: string) => {
7
return block.split('\n').filter(line => line.indexOf('@vuepress') >= 0).length;
8
})[0];
0 commit comments