twitter / twitter-text

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.
https://developer.twitter.com/en/docs/counting-characters
Apache License 2.0
3.08k stars 521 forks source link

JS: autoLinkWithJSON overwrites attributes with undefined values #67

Open KimberlyPeterson opened 9 years ago

KimberlyPeterson commented 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

nicol-699 commented 9 years ago

1-128 characters