tldraw/packages
David Sheldrick 8a1b014b02
Fix cleanupText (#2138)
Fixes a bug with our cleanupText helper where it fails on the empty
string or string with only space character(s).

Fixes https://tldraw.sentry.io/issues/4593272987

### Change Type

- [x] `patch` — Bug fix


[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [x] Unit Tests
- [ ] End to end tests

### Release Notes

- Fixes a minor bug where cleaning up text would fail.
2023-11-01 16:02:42 +00:00
..
assets Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00
editor [feature] multi-scribbles (#2125) 2023-10-29 14:37:36 +00:00
state Remove (optional) from jsdocs (#2109) 2023-10-20 15:31:50 +00:00
store Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00
tldraw Fix cleanupText (#2138) 2023-11-01 16:02:42 +00:00
tlschema [feature] multi-scribbles (#2125) 2023-10-29 14:37:36 +00:00
utils Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00
validate Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00