Skip to content

Commit f2f12db

Browse files
committed
SnapshotValueString now properly excludes unix newlines from ever entering a value.
1 parent 2752d51 commit f2f12db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/selfie-lib/selfie_lib/SnapshotValue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def of(data: Union[bytes, str, "SnapshotValue"]) -> "SnapshotValue":
2424
if isinstance(data, bytes):
2525
return SnapshotValueBinary(data)
2626
elif isinstance(data, str):
27-
return SnapshotValueString(data)
27+
return SnapshotValueString(unix_newlines(data))
2828
elif isinstance(data, SnapshotValue):
2929
return data
3030
else:

0 commit comments

Comments
 (0)