React String Replace Versions Save

A simple way to safely do string replacement with React components

v1.1.1

11 months ago
  • update types (#88 by @zbigniewstefaniuk)

v1.1.0

2 years ago

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.

v1.0.0

2 years ago

Since the API has long been stable this release simply signifies that fact.

v0.5.0

2 years ago

Remove dependencies.

v0.4.4

5 years ago
  • Updated typescript types (Thanks @monsterkrampe!)

v0.4.2

5 years ago
  • Adds typescript types (6c71cd4) (@jakemmarsh)

v0.4.0

7 years ago

Changes:

NOTE: The replacer function will now be called with 3 arguments instead of 2 (for details, see the diff).

v0.3.2

8 years ago
  • Fixes an issue where an empty string at the beginning of an input array would throw. See #4 for details.

v0.3.1

8 years ago
  • Fixes #4 where matches at the beginning or end of the string would cause an error to be thrown on subsequent calls

v0.3.0

8 years ago

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.