From dca3d2f79c32aa6dce292d9850b0bf5109de66a9 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 2 Jun 2025 23:17:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=84=9A=E6=9C=AC=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E4=B8=BA=E8=B7=AF=E5=BE=84=E6=97=B6=E5=B8=A6=E5=8F=82=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/package.json b/backend/package.json index b3a8011..4750c3f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.58", + "version": "2.19.59", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index 879dfac..446f3d9 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -142,9 +142,9 @@ async function processFn( ? `#${rawArgs[1]}` : '' }`; - const downloadUrlMatch = url.match( - /^\/api\/(file|module)\/(.+)/, - ); + const downloadUrlMatch = url + .split('#')[0] + .match(/^\/api\/(file|module)\/(.+)/); if (downloadUrlMatch) { let type = ''; try {