Skip to content

v2.0.0

@sudhee sudhee tagged this 15 Dec 18:22
Updates the twitter-text parsing library v2.0. Important changes
include:

- New configuration file and JSON format.
- Support for length calculations based on weighting ranges of
  code points.
- Updates Java, JavaScript, Ruby, and Objective-C implementations.
- Regular expressions used for parsing Tweets and calculating length
  are now similar across all languages.
- Conform to RFC 1035 for domain names.
- Support for punycoded hostnames per RFC 3490.
- Domain labels restricted to a maximum length of 63 characters,
  conforming to RFC 1035.
- The overall URL length cannot be more than 4096 characters.
- Allow hyphens in the middle of a non-ASCII hostname.
- Updated conformance tests.
- Deprecates old v1 length calculation methods.
- Differentiating between the http and https shortened length for URLs
  has been deprecated (https is used for all t.co URLs).
- Update TLDs list.
- Update Emoji Regexes.
- Many bug fixes.
Assets 2
Loading