Skip to content

Commit

Permalink
Merge pull request #451 from dougyau/photometric_interpretation_trim
Browse files Browse the repository at this point in the history
Trim \0 characters from photometric interpretation
  • Loading branch information
Enet4 authored Jan 17, 2024
2 parents 8613855 + 87bfa08 commit 7cc9689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pixeldata/src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ pub fn photometric_interpretation<D: DataDictionary + Clone>(
.context(MissingRequiredSnafu { name })?
.string()
.context(CastValueSnafu { name })?
.trim()
.trim_matches(|c: char| c.is_whitespace() || c == '\0')
.into())
}

Expand Down

0 comments on commit 7cc9689

Please sign in to comment.