Skip to content

Releases: iansinnott/react-string-replace

v1.1.1

15 Jun 08:45
Compare
Choose a tag to compare

v1.1.0

02 May 16:07
Compare
Choose a tag to compare

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

17 Mar 17:48
Compare
Choose a tag to compare
1.0

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

v0.5.0

04 Dec 04:58
Compare
Choose a tag to compare

Remove dependencies.

Updated types

22 Apr 04:45
Compare
Choose a tag to compare

Add types

30 Mar 03:18
Compare
Choose a tag to compare

v0.4.0

22 Nov 19:28
Compare
Choose a tag to compare

Changes:

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

v0.3.2

18 Apr 06:12
Compare
Choose a tag to compare
  • Fixes an issue where an empty string at the beginning of an input array would throw. See #4 for details.

v0.3.1

18 Apr 03:25
Compare
Choose a tag to compare
  • 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

21 Mar 06:28
Compare
Choose a tag to compare

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.