From a4fef8a34e7646eae558165275f2dc81a4f450ba Mon Sep 17 00:00:00 2001 From: iuroc Date: Tue, 13 Aug 2024 15:02:47 +0800 Subject: [PATCH] v1.1.2 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 741037d..7589b37 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func PrintHeader() { // TrimPathInput 去除路径两端的特殊字符。 func TrimPathInput(input string) string { - return regexp.MustCompile(`^[\s&'"]+|[\s&'"]+$`).ReplaceAllString(input, "") + return regexp.MustCompile(`^[\s&'"]+|[\s&'"]+$|^file:///`).ReplaceAllString(input, "") } // GetUserInfo 获取用户信息,如果不存在,则要求用户扫码登录。