Skip to content

Commit

Permalink
Remove excess spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 18, 2024
1 parent 0cdb94e commit 73f01f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/propshaft/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Propshaft::Asset

class << self
def extract_path_and_digest(digested_path)
digest = digested_path[/-([0-9a-zA-Z]{7,128})\.(?!digested)([^.]|.map)+\z/, 1]
path = digest ? digested_path.sub("-#{digest}", "") : digested_path
digest = digested_path[/-([0-9a-zA-Z]{7,128})\.(?!digested)([^.]|.map)+\z/, 1]
path = digest ? digested_path.sub("-#{digest}", "") : digested_path

[path, digest]
end
Expand Down

0 comments on commit 73f01f4

Please sign in to comment.