REST API provides incorrect entity indices when emoji exists

api

#1

Twitter incorrectly provides:

{
  "hashtags": [
    {
      "text": "ABCF",
      "indices": [
        6,
        11
      ]
    },
    {
      "text": "BCH",
      "indices": [
        12,
        16
      ]
    }
  ],
  "urls": [],
  "user_mentions": [],
  "symbols": []
}

… while twitter-text JavaScript library correctly provides:

twttr.txt.extractHashtagsWithIndices("🎡✨\nπŸ˜³πŸ’“ #ABCF #BCH")

[
  {
    "hashtag": "ABCF",
    "indices": [
      9,
      14
    ]
  },
  {
    "hashtag": "BCH",
    "indices": [
      15,
      19
    ]
  }
]