react-string-replace-recursively
Advanced tools
Comparing version 0.1.27 to 0.2.0
{ | ||
"name": "react-string-replace-recursively", | ||
"version": "0.1.27", | ||
"version": "0.2.0", | ||
"description": "replace strings that match a particular pattern with a React Component, recursively", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# React String Replace Recursively | ||
[![npm](https://img.shields.io/npm/dt/react-string-replace-recursively.svg?maxAge=2592000)]() | ||
[![npm](https://img.shields.io/npm/dm/react-string-replace-recursively.svg?maxAge=2592000)]() | ||
## Installation | ||
@@ -14,3 +16,4 @@ `npm install react-string-replace-recursively --save` | ||
matcherFn: function (rawText, processed, key) { | ||
return <Link key={key} to={"tags/" + rawText}>{processed}</Link> | ||
return <Link key={key} to={"tags/" + rawText}>{processed}</Link>; | ||
} | ||
}, | ||
@@ -20,3 +23,3 @@ 'searchTerm': { | ||
matcherFn: function (rawText, processed, key) { | ||
return <span key={key} className='search-term-match'>{processed}</span> | ||
return <span key={key} className='search-term-match'>{processed}</span>; | ||
} | ||
@@ -131,2 +134,2 @@ } | ||
... | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17250
133