lib/xray/middleware.rb in xray-rails-0.1.14 vs lib/xray/middleware.rb in xray-rails-0.1.15
- old
+ new
@@ -71,10 +71,11 @@
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
+ # <script src="/assets/jquery.min.1.9.1-89255b9dbf3de2fbaa6754b3a00db431.js"></script>
+ html.sub!(/<script[^>]+\/#{after_script_name}([-.]{1}[\d\.]+)?([-.]{1}min)?(-\h{32})?\.js[^>]+><\/script>/) do
h = ActionController::Base.helpers
"#{$~}\n" + h.javascript_include_tag(script_name)
end
end