lib/propshaft/asset.rb in propshaft-1.0.0 vs lib/propshaft/asset.rb in propshaft-1.0.1

- old
+ new

@@ -4,11 +4,11 @@ class Propshaft::Asset attr_reader :path, :logical_path, :load_path 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 end