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.
3.08k
stars
521
forks
source link
JS: autoLinkWithJSON overwrites attributes with undefined values #67
Open
KimberlyPeterson opened 9 years ago
If you use the extraction methods for mentions, hashtags and cashtags to produce JSON for use with autoLinkWithJSON, autoLinkWithJSON overwrites screenName, hashtag and cashtag attributes with undefined, e.g.: https://github.com/twitter/twitter-text/blob/master/js/twitter-text.js#L667