summaryrefslogtreecommitdiff
path: root/types/unixpath.pp
diff options
context:
space:
mode:
authorHelen Campbell <helen@puppetlabs.com>2016-10-06 14:22:13 +0100
committerHelen Campbell <helen@puppetlabs.com>2016-10-07 14:18:34 +0100
commit83539371e5b1e6ff412eda48c3a725653c506ece (patch)
treedf4613b9feab0048cefef62b941f62a2ae63f94b /types/unixpath.pp
parent4aa519e998f2f4ce567bcaae5880800884a44bf6 (diff)
Addition of several new types
Diffstat (limited to 'types/unixpath.pp')
-rw-r--r--types/unixpath.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/unixpath.pp b/types/unixpath.pp
new file mode 100644
index 0000000..76f2c17
--- /dev/null
+++ b/types/unixpath.pp
@@ -0,0 +1,2 @@
+# this regex rejects any path component that is a / or a NUL
+type Stdlib::Unixpath = Pattern[/^\/([^\/\0]+(\/)?)+$/]