All Emoji Tweets Break URL Range Detection


#1

When I post a tweet with all emojis and a link the URL range is calculated incorrectly, which leads to a gibberish push notification (i.e., the t.co hash overlaps part of the correct push text). I have observed this on iOS by posting a tweet manually as below or sending one via the REST API.

Here is an example:

.@TheBealDeal šŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆ #FIREFIRE http://firefire.wtf/thebealdeal

Thoughts?


#2

Screenshot of issue


#3

I suspect the underlying twitter-text library may need to be updated, but Iā€™m not sure. Worth checking to see whether there are any known issues with that code.