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 ceae878 commit c0078d8Copy full SHA for c0078d8
apps/landing/script.js
@@ -9,7 +9,7 @@ for await (const file of files) {
9
encoding: 'utf-8',
10
}).then((content) => {
11
const titleIndex = content.toString().indexOf('#')
12
- if (content.trim().length === 0) {
+ if (content.trim().length === 0 || titleIndex === -1) {
13
return null
14
}
15
const fileName = file.split(/[/\\]/).pop()
0 commit comments