From f49516adda5d569f9fbdfab12ec084476cf66b23 Mon Sep 17 00:00:00 2001 From: sqzw-x Date: Wed, 10 Apr 2024 16:49:35 +0800 Subject: [PATCH] fix: dont remove slash (close #165) --- src/models/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/core/utils.py b/src/models/core/utils.py index 44e8948..a0e9b22 100644 --- a/src/models/core/utils.py +++ b/src/models/core/utils.py @@ -158,7 +158,7 @@ def show_data_result(json_data, start_time): def deal_url(url): if '://' not in url: url = 'https://' + url - url = url.strip('/ ') + url = url.strip() for key, vlaue in config.web_dic.items(): if key.lower() in url.lower(): return vlaue, url