Skip to content

v2.11.0 - regexToRemoveAttributes

Latest
Compare
Choose a tag to compare
@TheJaredWilcurt TheJaredWilcurt released this 01 Jun 14:13
· 1 commit to main since this release
ab02897

Features:

  • Added the regexToRemoveAttributes feature, so you can dynamically remove attributes that match a given regex pattern.
<!--
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: