mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-18 23:06:10 -05:00
fix: Adding Support for Windows Paths in Bash (#438)
Included support for Absolute Paths in Windows that begin with e.g. `G:/`
This commit is contained in:
parent
57a5d44b1f
commit
19a7059828
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ func validateDockerContainerPath() schema.SchemaValidateDiagFunc {
|
|||
return func(v interface{}, p cty.Path) diag.Diagnostics {
|
||||
value := v.(string)
|
||||
var diags diag.Diagnostics
|
||||
if !regexp.MustCompile(`^[a-zA-Z]:\\|^/`).MatchString(value) {
|
||||
if !regexp.MustCompile(`^[a-zA-Z]:[\\/]|^/`).MatchString(value) {
|
||||
diag := diag.Diagnostic{
|
||||
Severity: diag.Error,
|
||||
Summary: fmt.Sprintf("'%v' must be an absolute path", value),
|
||||
|
|
|
|||
Loading…
Reference in a new issue