unit tests

pull/9263/head
Sharif Elgamal 2020-09-17 13:11:01 -07:00
parent 39ae4fbdd2
commit 84ee6d351b
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ type Mount struct {
func ParseMountString(spec string) (m Mount, err error) {
f := strings.Split(spec, ":")
fields := f
// suppressing err is safe here since the regex will always compile
windows, _ := regexp.MatchString(`^[A-Z]:\\*`, spec)
if windows {
// Recreate the host path that got split above since