mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-17 14:01:01 +02:00
cleanup: update scpSyntaxRe regexp (#2444)
This commit is contained in:
parent
b5cd1c693d
commit
2de6ba028c
@ -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"}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user