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