From f87b3fbf42e49e847bb312b490cad7bbfb614141 Mon Sep 17 00:00:00 2001 From: aooiuu Date: Wed, 24 Jul 2024 21:01:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=84=E5=88=99=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/analyzer/AnalyzerManager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/analyzer/AnalyzerManager.ts b/packages/core/src/analyzer/AnalyzerManager.ts index 86432130..5ca501a1 100644 --- a/packages/core/src/analyzer/AnalyzerManager.ts +++ b/packages/core/src/analyzer/AnalyzerManager.ts @@ -298,6 +298,8 @@ export class AnalyzerManager { async getUrl(rule: string, host: string): Promise { let url = await this.getString(rule) + if (typeof url !== 'string') + return url if (url.startsWith('//')) { if (host.startsWith('https'))