Skip to content

Commit

Permalink
Align hash size to JS assets
Browse files Browse the repository at this point in the history
Also cleaner math on bit-size of hash
  • Loading branch information
aduth committed Sep 28, 2023
1 parent 491333f commit 47bab96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extensions/propshaft/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Extensions
Propshaft::Asset.class_eval do
def digest
@digest ||= Digest::SHA1.hexdigest("#{content}#{version}")[0...7]
@digest ||= Digest::SHA1.hexdigest("#{content}#{version}")[0...8]
end
end
end

0 comments on commit 47bab96

Please sign in to comment.