All notable changes to this project will be documented in this file.
- [Lib] New exported function
standardizeIndices
which adjusts indices based on actual text lengths in order to support characters that are more than one code point long. - [Dev] Upgrade to Babel 7 for transpiling
- [Lib] #300 where some numerical emojis are counted as 1 instead of 2 characters
- [Lib] #273 Do not identify URLs in the middle of an email address
- New v3.json config file with emojiParsingEnabled config option. When true, twitter-text will parse and discount emoji supported by the twemoji library (see https://github.com/twitter/twemoji-parser). The length of these emoji will be the default weight (200 or two characters) even if they contain multiple code points combined by zero-width joiners. This means that emoji with skin tone and gender modifiers no longer count as more characters than those without such modifiers.
- Updates known gTLDs to recognize recent additions by IANA (#261)
- Parse t.co urls with query params as valid urls