react-string-replace
react-string-replace copied to clipboard
A simple way to safely do string replacement with React components
Hi there π I have a situation where I'd like to replace the matched regex with my own array of nodes respectively. It would be great receiving natural index numbers...
Hi, I found some test cases where the function is failing: ` reactStringReplace('Apt 111, phone number 555-5555-555.', (match, i) => ( console.log( ` ${match}`) ));` so what I did I...
Hi there, when using this twice on the same string what is happens is as follows, the first string matches and an array containing the react component returned from the...
Resolve this problem - [https://github.com/iansinnott/react-string-replace/issues/74](url) Filter all undefined values. So, we dont get error like: "Cannot read property "length" of undefined"
Can you add support for multiple regex capture groups?
A 4th parameter as callback to process non-match items would be useful. For instance, in ReactNative, plain text cannot be outside of `` components. The non matches need to be...
reactStringReplace(title, /#(\w+)/g, (match, i) => ( #{match} ))
I am using react-string-replace for translations. I have a string and I want to replace a couple of substitutes. The code looks like this: ``` ReactStringReplace( '[link]This is my link[/link]...
## The devDependency [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) was updated from `2.50.3` to `3.0.0`. This version is **not covered** by your **current version range**. If you donβt accept this pull request, your project will...