1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-17 14:01:01 +02:00

cleanup: update scpSyntaxRe regexp ()

This commit is contained in:
jesse.tang 2022-10-14 11:08:16 +08:00 committed by GitHub
parent b5cd1c693d
commit 2de6ba028c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ import (
)
var (
scpSyntaxRe = regexp.MustCompile(`^([a-zA-Z0-9_]+)@([a-zA-Z0-9._-]+):(.*)$`)
scpSyntaxRe = regexp.MustCompile(`^(\w+)@([\w.-]+):(.*)$`)
scheme = []string{"git", "https", "http", "git+ssh", "ssh", "file", "ftp", "ftps"}
)