matt-d-rat / react-middle-truncate Goto Github PK
View Code? Open in Web Editor NEWA React component for intelligently truncating text in the middle of the string.
Home Page: https://matt-d-rat.github.io/react-middle-truncate
License: MIT License
A React component for intelligently truncating text in the middle of the string.
Home Page: https://matt-d-rat.github.io/react-middle-truncate
License: MIT License
Snyk identified an security vulnerability in an upstream dependency of [email protected]
, as noted by other users here: FormidableLabs/measure-text#5.
Prototype Pollution
The issue is still outstanding, so in the interim I will import the measure-text
dependent code into the react-middle-truncate
repo until this issue is resolved.
Describe the bug
When I include the module in the project a Failed to compile error starts showing.
Steps to Reproduce
Just include the library in the project and try to use it.
Expected behaviour
Be able to use the library and run the project as expected.
React
react
: 16.4.0react-dom
: 16.4.0Desktop
Not really a bug but it seems like the "all" and "partial" options do the same thing for smartCopy. I looked through the source code and couldn't find any differences in behavior. I assume partial was intended to create an expanded selection if the selection text is a substring that contains the ellipsis? If you don't plan to implement that feature maybe it would be less confusing for that option to be deprecated (but still work until a major release).
I re-read the code and realized that the trigger for each option is different (i.e. partial works even if the selection is an inexact match), but in each case the copied data becomes the full text input, which seems wrong for substring selections.
Hi,
i have integrated your plugin in my reactjs project . I used reactjs with redux and redux too.
So the plugin not work when string is fetched from api.
Ps: plugin working well with hard string.
this is code:
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.