Skip to content
Snippets Groups Projects
Commit d2a1be18 authored by Thomas Bellman's avatar Thomas Bellman Committed by Thomas Bellman
Browse files

Add function regexp_quote().

This was originally commit a154774bba6e in nsc-puppet-utils.
parent 067a65a8
No related branches found
No related tags found
No related merge requests found
module Puppet::Parser::Functions
newfunction(:regexp_quote, :type => :rvalue) do |args|
if args.length != 1
self.fail("regexp_quote(): wrong number of arguments" +
" (#{args.length} for 1)")
end
return Regexp.quote(args[0])
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment