Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iuroc committed Aug 13, 2024
1 parent b75306d commit a4fef8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 获取用户信息,如果不存在,则要求用户扫码登录。
Expand Down

0 comments on commit a4fef8a

Please sign in to comment.