We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a1a9d commit a9847e5Copy full SHA for a9847e5
readme.md
@@ -54,7 +54,7 @@ const HighlightNumbers = React.createClass({
54
const content = 'Hey my number is 555-555-5555.';
55
return (
56
<div>
57
- {reactStringReplace(this.props.content, /(\d+)/g, (match, i) => (
+ {reactStringReplace(content, /(\d+)/g, (match, i) => (
58
<span key={i} style={{ color: 'red' }}>{match}</span>
59
))}
60
</div>
0 commit comments