From 28f894f98818ef20eb28a6eadb3e6da83d403154 Mon Sep 17 00:00:00 2001 From: jiangrui Date: Wed, 12 Mar 2025 13:04:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=BB=98=E8=AE=A4=E5=8F=AA=E5=8F=96?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E7=BD=91=E7=9B=98=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/Searcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/Searcher.ts b/backend/src/services/Searcher.ts index 005e0b8..91c9bdc 100644 --- a/backend/src/services/Searcher.ts +++ b/backend/src/services/Searcher.ts @@ -72,7 +72,7 @@ export class Searcher { const matches = text.match(pattern); if (matches) { links.push(...matches); - cloudType = Object.keys(config.cloudPatterns)[index]; + if (!cloudType) cloudType = Object.keys(config.cloudPatterns)[index]; } }); return {