vendored/puppet/lib/puppet/functions/match.rb in bolt-0.17.1 vs vendored/puppet/lib/puppet/functions/match.rb in bolt-0.17.2

- old
+ new

@@ -11,27 +11,27 @@ # # If the function doesn't find a match, it returns 'undef'. # # @example Matching a regular expression in a string # -# ~~~ ruby +# ```puppet # $matches = "abc123".match(/[a-z]+[1-9]+/) # # $matches contains [abc123] -# ~~~ +# ``` # # @example Matching a regular expressions with grouping captures in a string # -# ~~~ ruby +# ```puppet # $matches = "abc123".match(/([a-z]+)([1-9]+)/) # # $matches contains [abc123, abc, 123] -# ~~~ +# ``` # # @example Matching a regular expression with grouping captures in an array of strings # -# ~~~ ruby +# ```puppet # $matches = ["abc123","def456"].match(/([a-z]+)([1-9]+)/) # # $matches contains [[abc123, abc, 123], [def456, def, 456]] -# ~~~ +# ``` # # @since 4.0.0 # Puppet::Functions.create_function(:match) do dispatch :match do