Skip to content

Commit c0078d8

Browse files
committed
Fix build error
1 parent ceae878 commit c0078d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/landing/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for await (const file of files) {
99
encoding: 'utf-8',
1010
}).then((content) => {
1111
const titleIndex = content.toString().indexOf('#')
12-
if (content.trim().length === 0) {
12+
if (content.trim().length === 0 || titleIndex === -1) {
1313
return null
1414
}
1515
const fileName = file.split(/[/\\]/).pop()

0 commit comments

Comments
 (0)