diff options
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 8dd57f1..1cf7b32 100644 --- a/README.markdown +++ b/README.markdown @@ -1054,6 +1054,13 @@ test, and the second argument should be a stringified regular expression (withou validate_re($::puppetversion, '^2.7', 'The $puppetversion fact value does not match 2.7') ~~~ + Note: Compilation will also abort, if the first argument is not a String. Always use + quotes to force stringification: + + ~~~ + validate_re("${::operatingsystemmajrelease}", '^[57]$') + ~~~ + *Type*: statement. #### `validate_slength` |