1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 17:06:42 +00:00

small fix

This commit is contained in:
Laura
2025-08-11 01:17:12 +02:00
parent e212ba541e
commit 28997fa8e1

View File

@@ -281,7 +281,7 @@
if (!only || only === "text") {
let text = this.#text;
if (this.#tags.includes("json")) {
if (text && this.#tags.includes("json")) {
text = `\`\`\`json\n${text}\n\`\`\``;
}