Releases: iansinnott/react-string-replace
Releases · iansinnott/react-string-replace
v1.1.1
- update types (#88 by @zbigniewstefaniuk)
v1.1.0
Changed
- Fixed issue where
undefined
in the results of string.split would throw an error. This depends on the user-passed regex so it only happens sometimes, depending on your regex. can reproduce using two matching groups.
1.0
Since the API has long been stable this release simply signifies that fact.
v0.5.0
Remove dependencies.
Updated types
- Updated typescript types (Thanks @monsterkrampe!)
Add types
- Adds typescript types (6c71cd4) (@jakemmarsh)
v0.4.0
Changes:
- Add offset param as described by the official String.prototype.replace docs (@pejrak in #9)
NOTE: The replacer function will now be called with 3 arguments instead of 2 (for details, see the diff).
v0.3.2
v0.3.1
v0.3.0
The release allows reactStringReplace
to be called with an Array as the first argument. This is good because it means you can call reactStringReplace
multiple times on a result, allowing multiple replacements on a single string.
See the README for full details.