lib/xray/middleware.rb in xray-rails-0.1.18 vs lib/xray/middleware.rb in xray-rails-0.1.19
- old
+ new
@@ -89,9 +89,10 @@
# <script src="/assets/jquery.min.1.9.1-89255b9dbf3de2fbaa6754b3a00db431.js"></script>
def script_matcher(script_name)
/
<script[^>]+
\/#{script_name}
+ (2)? # Optional 2 for jQuery2 format
([-.]{1}[\d\.]+)? # Optional version identifier (e.g. -1.9.1)
([-.]{1}min)? # Optional -min suffix
(\.self)? # Sprockets 3 appends .self to the filename
(-\h{32,64})? # Fingerprint varies based on Sprockets version
\.js # Must have .js extension