diff options
author | Eric Putnam <putnam.eric@gmail.com> | 2017-07-26 16:39:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 16:39:11 -0700 |
commit | 44a1b86e7547093d99d5754e1cc655f348335f59 (patch) | |
tree | d10c757dd49dcd1649be33a1accbf57cfbbec32b /types | |
parent | d65a144aea0cd73f4aaa0cef15c74414baba5c8d (diff) | |
parent | d773497f95d6dd24a9a94a0faf13336d8de41d8e (diff) |
Merge pull request #796 from bastelfreak/mac
add type for MAC address
Diffstat (limited to 'types')
-rw-r--r-- | types/mac.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/mac.pp b/types/mac.pp new file mode 100644 index 0000000..4103574 --- /dev/null +++ b/types/mac.pp @@ -0,0 +1,2 @@ +# A type for a MAC address +type Stdlib::MAC = Pattern[/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/] |