diff options
author | Daniel Kröger <kofrezo@users.noreply.github.com> | 2017-08-31 14:18:04 +0200 |
---|---|---|
committer | Daniel Kröger <daniel.kroeger@innogames.com> | 2017-09-20 11:36:13 +0200 |
commit | 51c9dc52cf68fcb128c5324d3642620100a44d27 (patch) | |
tree | 60bfc8176be3e59f91a40d84c2c840bbc017b065 | |
parent | 7404ed3029b726ae9abbb9a4fc698090374bdf98 (diff) |
Allow root as valid UNIX path
Since the purpose of this validation type is to check if the given parameter is a valid UNIX path it should also cover the root path "slash" since it might be possible that it is specified as a target directory.
-rw-r--r-- | types/unixpath.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/unixpath.pp b/types/unixpath.pp index ec3bf7d..4cd6f01 100644 --- a/types/unixpath.pp +++ b/types/unixpath.pp @@ -1,2 +1,2 @@ # this regex rejects any path component that is a / or a NUL -type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)+$/] +type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)*$/] |