We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3213d2b commit dcdf365Copy full SHA for dcdf365
lib/sprockets/rails/asset_url_processor.rb
@@ -3,7 +3,7 @@ module Rails
3
# Rewrites urls in CSS files with the digested paths
4
class AssetUrlProcessor
5
REGEX = /url\(\s*["']?(?!(?:\#|data|http))([^"'\s)]+)\s*["']?\)/
6
-
+
7
def self.call(input)
8
context = input[:environment].context_class.new(input)
9
data = input[:data].gsub(REGEX) { |_match| "url(#{context.asset_path($1)})" }
0 commit comments