aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/re_escape.rb
blob: 7bee90a852ea54bd7497dd283f86329bfcdfb182 (plain)
1
2
3
4
5
6
7
# apply ruby regexp escaping to a string
module Puppet::Parser::Functions
	newfunction(:re_escape, :type => :rvalue) do |args|
		Regexp.escape(args[0])
	end
end