Skip to content

Commit

Permalink
Docs: add HTML custom attribute trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 committed Aug 25, 2018
1 parent 944138d commit 4099306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/api/replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Parameters:

Options:
- espreeOptions: same as [replace.js](#js) options

- triggerClassAttributes `<Array>`: Array of string or regular expressions. Renames all classes with the matching string or regex. E.g. `[/data-*/ , 'custom-attr']` matches all data attributes and 'custom-attr'
- triggerIdAttributes `<Array>`: Same as triggerClassAttributes just for IDs
Example:

```js
Expand Down

0 comments on commit 4099306

Please sign in to comment.