Skip to content

Commit

Permalink
Update README around available options
Browse files Browse the repository at this point in the history
Goes along with oliviertassinari#62
  • Loading branch information
zslabs committed Feb 7, 2019
1 parent 2b6f535 commit 465a41f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ without options:
}
```

with options. We accepts an array of property names:
with options. We accepts an array of property names that can be either strings or regular expressions:
```json
{
"env": {
"production": {
"plugins": [
["react-remove-properties", {"properties": ["data-test", "data-foo"]}]
["react-remove-properties", {"properties": ["data-test", "data-foo", /my-suffix-expression$/]}]
]
}
}
Expand Down Expand Up @@ -100,7 +100,7 @@ with options:
```js
require('babel-core').transform('code', {
plugins: [
['react-remove-properties', {properties: ['data-test', 'data-foo']}],
['react-remove-properties', {properties: ['data-test', 'data-foo', /my-suffix-expression$/]}],
],
});
```
Expand Down

0 comments on commit 465a41f

Please sign in to comment.