You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/puppet/parser/functions/validate_slength.rb
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@ module Puppet::Parser::Functions
7
7
newfunction(:validate_slength,doc: <<-DOC
8
8
@summary
9
9
Validate that the first argument is a string (or an array of strings), and less/equal to than the length of the second argument.
10
-
An optional third parameter can be given the minimum length. It fails if the first argument is not a string or array of strings,
11
-
and if arg 2 and arg 3 are not convertable to a number.
10
+
11
+
An optional third parameter can be given the minimum length. It fails if the first argument is not a string or array of strings,
12
+
and if arg 2 and arg 3 are not convertable to a number.
12
13
13
14
@return
14
15
validate that the first argument is a string (or an array of strings), and less/equal to than the length of the second argument. Fail compilation if any of the checks fail.
0 commit comments