Skip to content

Commit

Permalink
fix: dont remove slash (close #165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Apr 10, 2024
1 parent 28432b1 commit f49516a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f49516a

Please sign in to comment.