lib/xray/middleware.rb in xray-rails-0.1.5 vs lib/xray/middleware.rb in xray-rails-0.1.6

- old
+ new

@@ -58,10 +58,10 @@ def append_js!(html, after_script_name, script_name) # Matches: # <script src="/assets/jquery.js"></script> # <script src="/assets/jquery-min.js"></script> # <script src="/assets/jquery.min.1.9.1.js"></script> - html.sub!(/<script[^>]+#{after_script_name}([-.]{1}[\d\.]+)?([-.]{1}min)?\.js[^>]+><\/script>/) do + html.sub!(/<script[^>]+\/#{after_script_name}([-.]{1}[\d\.]+)?([-.]{1}min)?\.js[^>]+><\/script>/) do h = ActionController::Base.helpers "#{$~}\n" + h.javascript_include_tag(script_name) end end