mirror of https://github.com/docker/docs.git
Merge pull request #426 from sthulb/virtualbox-state
Remove $ from regexp for Windows users
This commit is contained in:
commit
9b55d4f0a9
|
@ -426,7 +426,7 @@ func (d *Driver) GetState() (state.State, error) {
|
|||
}
|
||||
return state.Error, err
|
||||
}
|
||||
re := regexp.MustCompile(`(?m)^VMState="(\w+)"$`)
|
||||
re := regexp.MustCompile(`(?m)^VMState="(\w+)"`)
|
||||
groups := re.FindStringSubmatch(stdout)
|
||||
if len(groups) < 1 {
|
||||
return state.None, nil
|
||||
|
|
Loading…
Reference in New Issue