1
0
mirror of synced 2025-12-23 03:44:00 -05:00

fix file read error in rewrite-local-links.js (#54871)

This commit is contained in:
Rachael Sewell
2025-03-17 14:38:00 -07:00
committed by GitHub
parent 0f8371925c
commit 38d95ebb70

View File

@@ -47,6 +47,7 @@ function logError(file, line, message, title = 'Error') {
}
function getFrontmatterOffset(filePath) {
if (!fs.existsSync(filePath)) return 0
const rawContent = fs.readFileSync(filePath, 'utf-8')
let delimiters = 0
let count = 0