Merge pull request #921 from nwind/master

fix:搜索避免大量非代码的文本被过滤
This commit is contained in:
吴多益 2020-09-03 17:23:00 +08:00 committed by GitHub
commit 0b4c74210c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,7 @@ glob('./docs/**/*.md', {}, function (er, docs) {
.replace(/<\!---.+-->/g, '')
.replace(/!?\[.*\]\(.*\)/g, '')
.replace(/\n/g, '')
.replace(/```.*```/g, '')
.replace(/```[^`]*```/g, '')
.toLowerCase(),
path: doc.slice(1).replace('.md', '')
});

File diff suppressed because one or more lines are too long