pachli-android/licenses/libraries
Nik Clayton 2a4126a542
fix: Improve URL / tag / mention extraction when composing (#564)
Previous code used custom regular expressions to extract URLs, hashtags,
and mentions from text while the user was writing a post. These were
inconsistent with the ones that Mastodon uses so the derived character
count could be wrong.

As well as being visually incorrect this could prevent the user from
posting a status that was within the length limit, or allow them to
attempt to post a status that was over the length limit (which would
then fail).

Fix this by dropping the homegrown regular expressions and using the
same text parsing library that Mastodon users; twitter-text. This has
been converted to Kotlin and the functionality related to Twitter
specific features has been removed.

The hashtag handling has been adjusted, as Mastodon is more permissive
about the positions where hashtags can appear than Twitter is, in
particular, a hashtag does not need to be preceded with whitespace if
the tag appears after some scripts, such as Hirigana.
2024-03-23 14:14:07 +01:00
..
artwork.json fix: Ensure third party code is properly credited 2023-09-04 20:22:07 +02:00
atkinson_hyperlegible.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
blobmoji.json fix: Ensure third party code is properly credited 2023-09-04 20:22:07 +02:00
comic_neue.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
estedad.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
lexend.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
luciole.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
opendyslexic.json feat: Allow the user to choose a different font 2023-09-04 20:22:07 +02:00
tusky.json fix: Ensure third party code is properly credited 2023-09-04 20:22:07 +02:00
twemoji.json fix: Ensure third party code is properly credited 2023-09-04 20:22:07 +02:00
twittertext.json fix: Improve URL / tag / mention extraction when composing (#564) 2024-03-23 14:14:07 +01:00