Skip to content

Commit

Permalink
chore: update readme (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Mar 3, 2022
1 parent 3fa4343 commit abe7e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ import MagicString from 'magic-string'

const s = new MagicString(source)

s.replace(foo, 'bar')
s.replace('foo', 'bar')
s.replace(/foo/g, 'bar')
s.replace(/(\w)(\d+)/g, (_, $1, $2) => $1.toUpperCase() + $2)
```
Expand Down

0 comments on commit abe7e36

Please sign in to comment.