From 5affbdebb978c1958566d8112875417cc6dbccfc Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 21 Nov 2024 22:37:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E9=80=81=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- src/common/utils/file.ts | 2 +- src/version.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 204c102..1605c46 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "LLOneBot", "slug": "LLOneBot", "description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发", - "version": "4.4.0", + "version": "4.4.1", "icon": "./icon.webp", "authors": [ { diff --git a/src/common/utils/file.ts b/src/common/utils/file.ts index bd77aa2..4963d85 100644 --- a/src/common/utils/file.ts +++ b/src/common/utils/file.ts @@ -123,7 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P const { type } = checkUriType(uri) if (type === FileUriType.FileURL) { - const fileUri = uri.replace('%', '%25').replace('#', '%23') + const fileUri = uri.replace(/%/g, '%25').replace(/#/g, '%23') const filePath = fileURLToPath(fileUri) const fileName = path.basename(filePath) // console.log('fileURLToPath', filePath) diff --git a/src/version.ts b/src/version.ts index 2729c69..73570db 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '4.4.0' +export const version = '4.4.1'