X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Ftypes%2Funixpath.pp;h=0736852475e181cfd712f6c3f67b93a7a9d2a7d1;hb=e550ca4aeaed6e29598901326f3d707631fa1402;hp=ec3bf7d0e53d5c1d59cefa9e328ff32ba0761456;hpb=6963202b4b62c2816655ac9532521b018fdf83bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/types/unixpath.pp b/3rdparty/modules/stdlib/types/unixpath.pp index ec3bf7d0e..073685247 100644 --- a/3rdparty/modules/stdlib/types/unixpath.pp +++ b/3rdparty/modules/stdlib/types/unixpath.pp @@ -1,2 +1,2 @@ -# this regex rejects any path component that is a / or a NUL -type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)+$/] +# this regex rejects any path component that does not start with "/" or is NUL +type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)*$/]