Features:
- Added the
regexToRemoveAttributes
feature, so you can dynamically remove attributes that match a given regex pattern.- Thanks to @ErgoSoftUK for the request.
<!--
global.vueSnapshots.regexToRemoveAttributes = undefined;
-->
<div data-container data-id-4285>
<button class="primary" data-id-8320>
Text
</button>
</div>
<!--
global.vueSnapshots.regexToRemoveAttributes = new RegExp(/data-id.*/);
-->
<div data-container>
<button class="primary">
Text
</button>
</div>
Diff: