app/models/locomotive/theme_asset.rb in locomotive_cms-2.0.0.rc7 vs app/models/locomotive/theme_asset.rb in locomotive_cms-2.0.0.rc8
- old
+ new
@@ -143,10 +143,10 @@
end
def escape_shortcut_urls(text)
return if text.blank?
- text.gsub(/[("'](\/(stylesheets|javascripts|images|media)\/(([^;.]+)\/)*([a-z_\-0-9]+)\.[a-z]{2,3})[)"']/) do |path|
+ text.gsub(/[("'](\/(stylesheets|javascripts|images|media)\/(([^;.]+)\/)*([a-zA-Z_\-0-9]+)\.[a-z]{2,3})[)"']/) do |path|
sanitized_path = path.gsub(/[("')]/, '').gsub(/^\//, '')
if asset = self.site.theme_assets.where(:local_path => sanitized_path).first
"#{path.first}#{asset.source.url}#{path.last}"
\ No newline at end of file