lib/sinatra/assetpack/css.rb in sinatra-assetpack-0.2.1 vs lib/sinatra/assetpack/css.rb in sinatra-assetpack-0.2.2
- old
+ new
@@ -2,10 +2,10 @@
module Sinatra
module AssetPack
module Css
def self.preproc(str, assets)
- str.gsub(/url\((["']?)(.*?)(["']?)\)/) { |url|
+ str.gsub(/url\((["']?)(?!data:)(.*?)(["']?)\)/) { |url|
css_url = URI.parse($2)
file = css_url.path
options = css_url.query
local = assets.local_file_for file