share-this icon indicating copy to clipboard operation
share-this copied to clipboard

Truncate text by words

Open bevacqua opened this issue 7 years ago • 1 comments

Consider using trunc-text instead of https://github.com/MaxArt2501/share-this/blob/master/src/sharers/twitter.js#L17, so that you don't get the last word butchered up when trying to share long bits of text.

bevacqua avatar Jun 26 '17 10:06 bevacqua

Thanks for the suggestion, Nicolás. Although I don't consider the sharers provided by the package as a vital part of the library, I do intend to improve from being more than basic examples. Your utility seems like a good match for the task. I'll see if this fits in the next update.

MaxArt2501 avatar Jun 26 '17 18:06 MaxArt2501