From 83d47f7aaa247371ad8a51b8d5245afe8f4af620 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 20 Jul 2023 05:00:44 +0000
Subject: [PATCH] rename github action
---
quartz/plugins/transformers/description.ts | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/quartz/plugins/transformers/description.ts b/quartz/plugins/transformers/description.ts
index cc20769..3505b19 100644
--- a/quartz/plugins/transformers/description.ts
+++ b/quartz/plugins/transformers/description.ts
@@ -31,7 +31,9 @@
let sentenceIdx = 0
const len = opts.descriptionLength
while (finalDesc.length < len) {
- finalDesc += sentences[sentenceIdx] + '.'
+ const sentence = sentences[sentenceIdx]
+ if (!sentence) break
+ finalDesc += sentence + '.'
sentenceIdx++
}
--
Gitblit v1.10.0