Skip to content

Commit 408aae2

Browse files
authored
Style
1 parent 21faf54 commit 408aae2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/sprockets/rails/asset_url_processor.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ class AssetUrlProcessor
66

77
def self.call(input)
88
context = input[:environment].context_class.new(input)
9-
data = input[:data].gsub(REGEX) do |_match|
10-
"url(#{context.asset_path($1)})"
11-
end
9+
data = input[:data].gsub(REGEX, "url(#{context.asset_path($1)})")
10+
1211
{ data: data }
1312
end
1413
end

0 commit comments

Comments
 (0)