From 3bd8c66d456d0fbfa5108ef4afe29bcec825653e Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Thu, 26 Oct 2023 08:03:33 -0700 Subject: [PATCH] single quote /animate support --- src/commands/images/animate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/images/animate.ts b/src/commands/images/animate.ts index 498622270..4f2a4ded5 100644 --- a/src/commands/images/animate.ts +++ b/src/commands/images/animate.ts @@ -51,6 +51,8 @@ export const command: SlashCommand = { // add surrounding braces if needed to parse properly if (!mcmetaText.endsWith("}")) mcmetaText += "}"; if (!mcmetaText.startsWith("{")) mcmetaText = "{" + mcmetaText; + // replace single quotes with double quotes + mcmetaText = mcmetaText.replace(/\'/g, '"'); let parsed: any; try {