about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/text-input-util.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-24 07:10:29 -0700
committerGitHub <noreply@github.com>2024-04-24 15:10:29 +0100
commitb3df0b177f88cc4ee9565ae7f9209d738370942a (patch)
treec33402bd70ec4ba85a3a8fc020312e2c8852dfba /src/view/com/composer/text-input/text-input-util.ts
parent05beb1bbadf86f8b20ab950497947e31beea798e (diff)
downloadvoidsky-b3df0b177f88cc4ee9565ae7f9209d738370942a.tar.zst
Remove unnecessary `.trimEnd()` and fix facet detection (#3672)
* Fix link facet detection

Exclude the trailing period from the link, similar as done in the atproto package

* Fix JSON to text conversion

The trimEnd() call was only needed because we were always appending \n\n at the end. Fix that by only adding line breaks after non-final paragraphs.

* Detect paste reliably

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/composer/text-input/text-input-util.ts')
0 files changed, 0 insertions, 0 deletions