Skip to content

Commit 2b2b387

Browse files
authored
Merge pull request #811 from kofrezo/master
Allow root as valid UNIX path
2 parents 1ff9956 + 51c9dc5 commit 2b2b387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/unixpath.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# this regex rejects any path component that is a / or a NUL
2-
type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)+$/]
2+
type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)*$/]

0 commit comments

Comments
 (0)