Skip to content

Commit

Permalink
Trim starting slash from uri
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Aug 29, 2022
1 parent 6e8a66b commit 369088b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asset_hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl AssetHasher {
.filter(|uri| is_local_uri(uri))
.map(|uri| Asset {
uri: uri.to_string(),
path: self.config.dist_path.join(&uri),
path: self.config.dist_path.join(uri.trim_start_matches("/")),
})
.filter(|asset| asset.path.exists())
.collect();
Expand Down

0 comments on commit 369088b

Please sign in to comment.