diff --git a/functions/size_to_bytes.pp b/functions/size_to_bytes.pp index b2190321..4f688661 100644 --- a/functions/size_to_bytes.pp +++ b/functions/size_to_bytes.pp @@ -10,7 +10,7 @@ function lvm::size_to_bytes ( 'E' => 1.1529215e18, } # Check if the size is valid and if so, extract the units - if $size =~ /^([0-9]+(\.[0-9]+)?)([KMGTPEkmgtpe])/ { + if $size =~ /^