twitter-text icon indicating copy to clipboard operation
twitter-text copied to clipboard

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.

Results 95 twitter-text issues
Sort by recently updated
recently updated
newest added

When using the JS version and passing the following message through getTweetLength, it returns exactly 280 characters but Twitter considers it having 282. "Para obter o bilhete único comum você...

URLs pointing to our app (e.g. https://metadata.fdz.dzhw.eu/#!/de/studies/stu-cmp2014$?version=1.0.0) contain a $. The twitter app breaks the links at the dollar sign (see https://twitter.com/ReitmannRene/status/1177212842241601536?s=20) ### Expected behavior The complete URL should be...

READMEs in the Java, Objective-C and Ruby libraries incorrectly state that `displayRange` and `validRange` are "pairs of **unicode** code point indices". However, the actual implementations and the conformance test suite...

documentation

Hey, I have the following text that does not pass the tweet validity test. ```Have you listened to my latest playlist, featuring 15 amazing artists? 🌲Songs form an adventurer 🚙...

javascript

These cashtags aren't auto-linking? > Maybe start w/ bitcoin ($BTC/$XBT) and ethereum ($ETH) addresses in your site footer and social media profiles?

java

When using extractMentions in the Javascript library if the following URL is included in the text there will be an additional mention (`@51`). Example URL: `https://www.google.co.uk/maps/place/Buckingham+Palace/@51.499649,-0.147005,15z/data=!4m5!3m4!1s0x0:0xa26abf514d902a7!8m2!3d51.5013631!4d-0.1418889?hl=en`

javascript

Internet Explorer 11 fails loading the script giving a "SCRIPT1010: Expected identifier" error at line 398: ```javascript if (typeof gen.return !== "function") { ``` because of the reserved word "return"is...

weightedLength is pretty naïve in the set of unicode ranges it uses, relegating large swaths of languages/scripts to double weighting for no evident reason. ### Expected behavior Languages like Khmer...

ObjC TwitterText remainingCharacterCount & tweetLength Test Failed ### Expected behavior - class method `+ (NSInteger)tweetLength:(NSString *)text transformedURLLength:(NSInteger)transformedURLLength` should return `4` when text is 😀👍🏿. - class method `+ (NSInteger)remainingCharacterCount:(NSString *)text...

Noticed that both `twitter-text-3.0.0.js` and `twitter-text-3.0.0.min.js` are missing after v3.0.0 was cut. ### Expected behavior Expecting to see `twitter-text-3.0.0.js` and `twitter-text-3.0.0.min.js` in `/js/pkg/`