Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh authored Oct 18, 2021
1 parent 21faf54 commit 408aae2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/sprockets/rails/asset_url_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ class AssetUrlProcessor

def self.call(input)
context = input[:environment].context_class.new(input)
data = input[:data].gsub(REGEX) do |_match|
"url(#{context.asset_path($1)})"
end
data = input[:data].gsub(REGEX, "url(#{context.asset_path($1)})")

{ data: data }
end
end
Expand Down

0 comments on commit 408aae2

Please sign in to comment.