Skip to content

Commit 23579cc

Browse files
committed
Fix code highlighting in readme
1 parent 51f5a96 commit 23579cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ reactStringReplace('whats your name', 'your', (match, i) => (
3030

3131
Highlight all digits within a string by surrounding them in span tags:
3232

33-
```
33+
```js
3434
reactStringReplace('Apt 111, phone number 5555555555.', /(\d+)/g, (match, i) => (
3535
<span key={i} style={{ color: 'red' }}>{match}</span>
3636
));

0 commit comments

Comments
 (0)