Skip to content

Commit

Permalink
single quote /animate support
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 26, 2023
1 parent 384a74f commit 3bd8c66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/images/animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3bd8c66

Please sign in to comment.