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 cb815c4 commit d12a86eCopy full SHA for d12a86e
readme.md
@@ -70,11 +70,11 @@ You can run multiple replacements on one string by calling the function multiple
70
```js
71
const reactStringReplace = require('react-string-replace')
72
73
-const text = 'Hey @ian_989, check out this link https://github.com/iansinnott/. Hope to see you at #reactconf';
+const text = 'Hey @ian_989, check out this link https://github.com/iansinnott/ Hope to see you at #reactconf';
74
let replacedText;
75
76
// Match URLs
77
-replacedText = replaceString(originalTweet, /(https?:\/\/\S+)/g, match => (
+replacedText = replaceString(text, /(https?:\/\/\S+)/g, match => (
78
<a href={match}>{match}</a>
79
));
80
0 commit comments