Skip to content

Commit e97d7d3

Browse files
committed
fix: if data-target-path ends with a slash, remove it
1 parent 83bdc5a commit e97d7d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pipelines/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ impl fmt::Display for AttrWriter<'_> {
409409
fn data_target_path(attrs: &Attrs) -> Result<Option<PathBuf>> {
410410
Ok(attrs
411411
.get(ATTR_TARGET_PATH)
412+
.map(|val| val.trim_end_matches('/'))
412413
.map(|val| val.parse())
413414
.transpose()?)
414415
}

0 commit comments

Comments
 (0)