Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
cdd80e813eac90a461590acd3d1b28c7593e6ed0
/
.
/
vendor
/
github.com
/
moby
/
buildkit
/
util
/
sshutil
/
transport_validation.go
blob: f00a1df2238e1c6424ef73fc5469d61917f9b5df [
file
] [
log
] [
blame
]
package sshutil
import (
"regexp"
)
var gitSSHRegex = regexp.MustCompile("^[a-zA-Z0-9-_]+@[a-zA-Z0-9-.]+:.*$")
func IsSSHTransport(s string) bool {
return gitSSHRegex.MatchString(s)
}