mcp调试完成
This commit is contained in:
@@ -11,6 +11,9 @@ def normalize_url(url: str) -> str:
|
||||
2. 移除 fragment (#后面的内容)
|
||||
3. 移除 query 参数 (视业务需求而定,这里假设不同 query 是同一页面)
|
||||
4. 移除尾部斜杠
|
||||
示例:
|
||||
"https://www.example.com/path/" -> "https://www.example.com/path"
|
||||
"https://www.example.com/path?query=1" -> "https://www.example.com/path"
|
||||
"""
|
||||
if not url:
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user