react-string-replace
react-string-replace copied to clipboard
Feat: Add count parameter to match only the first 'n' items
I needed to do single replacements using this library and found this issue reporting someone else trying to do the same thing: https://github.com/iansinnott/react-string-replace/issues/45 I've made this change.
Test and documentation added. This is now in use at https://komment.ai/
Just added some fixes that came up as a result of our internal testing