Clean NewVM func
This commit is contained in:
parent
122d5b1089
commit
cd5b6dc48d
6 changed files with 360 additions and 184 deletions
|
|
@ -23,5 +23,11 @@ func validateArgStrValue(s string) error {
|
|||
return fmt.Errorf("commas are not allowed")
|
||||
}
|
||||
|
||||
if strings.Contains(s, "\\") {
|
||||
// Backslashes are theoretically allowed, but they rarely work as intended.
|
||||
// For Windows paths, forward slashes should be used.
|
||||
return fmt.Errorf("backslashes are not allowed")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue