diff options
author | pommicket <pommicket@gmail.com> | 2023-01-24 20:56:43 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-24 20:56:43 -0500 |
commit | 71dc7b8671449f936a2875e6f8a9649131234fc4 (patch) | |
tree | 76a45a615070948c79ad7205e786517858c321d2 /src/sdf.rs | |
parent | cbdb80698fd7128e7bcc63c8513e53731dda0963 (diff) |
remove whitespace from *inside* scene string
Diffstat (limited to 'src/sdf.rs')
-rw-r--r-- | src/sdf.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ fn encode_hex(data: &[u8]) -> String { /// decode `data` from hexadecimal. /// returns None if this isn't a valid hexadecimal string. fn decode_hex(data: &str) -> Option<Vec<u8>> { - let data = data.trim(); + let data = data.replace(char::is_whitespace, ""); if data.len() % 2 != 0 { return None; } |