lib/action_view/template/handlers/raw.rb in actionview-4.2.11.3 vs lib/action_view/template/handlers/raw.rb in actionview-5.0.0.beta1

- old
+ new

@@ -1,9 +1,9 @@ module ActionView module Template::Handlers class Raw def call(template) - escaped = template.source.gsub(/:/, '\:') + escaped = template.source.gsub(':'.freeze, '\:'.freeze) '%q:' + escaped + ':;' end end end