From e3fb7089d514f75ac3faed6201c725689c3f88c9 Mon Sep 17 00:00:00 2001 From: Emre Hasegeli Date: Mon, 4 Sep 2017 12:28:38 +0200 Subject: [PATCH] Make Unixpath accept "/" This is a perfectly valid path. --- types/unixpath.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/unixpath.pp b/types/unixpath.pp index ec3bf7d0e..4cd6f01e4 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]+\/*)*$/]