Skip to content

Commit

Permalink
Make sure null/undefined characters are handled during export (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewish authored Feb 23, 2024
1 parent a35f59d commit adb538f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/text_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function layerToText(layer: ILayerView, box?: Box) {

layer
.entries()
.filter(([key]) => box.contains(key))
.filter(([key, value]) => box.contains(key) && !!value)
.forEach(([key, value]) => {
if (value.charCodeAt(0) < 32 || value.charCodeAt(0) == 127) {
// Every ascii value below 32 is control, and 127 is DEL.
Expand Down

0 comments on commit adb538f

Please sign in to comment.