From b052f57f936006d5a9d020ee5687d55a7ab99740 Mon Sep 17 00:00:00 2001 From: Cesar Lai Date: Wed, 3 Jan 2024 17:25:13 +0800 Subject: [PATCH] Fix: formatted buffer fileName with '}' suffix --- src/plugins/transformer/path.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/transformer/path.ts b/src/plugins/transformer/path.ts index 871f576..be5007c 100644 --- a/src/plugins/transformer/path.ts +++ b/src/plugins/transformer/path.ts @@ -28,7 +28,7 @@ const handle = async (ctx: IPicGo): Promise => { const extname = info.extname || imgSize.extname || '.png' results[index] = { buffer: info.buffer, - fileName: info.fileName || `${dayjs().format('YYYYMMDDHHmmss')}${extname}}`, + fileName: info.fileName || `${dayjs().format('YYYYMMDDHHmmss')}${extname}`, width: imgSize.width, height: imgSize.height, extname