File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
transforms/angle-brackets Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ function getOptions() {
1717 options . helpers = config . helpers ;
1818 }
1919
20+ if ( config . skipAttributesThatMatchRegex ) {
21+ options . skipAttributesThatMatchRegex = config . skipAttributesThatMatchRegex ;
22+ }
23+
2024 if ( config . skipFilesThatMatchRegex ) {
2125 options . skipFilesThatMatchRegex = new RegExp ( config . skipFilesThatMatchRegex ) ;
2226 }
Original file line number Diff line number Diff line change @@ -960,7 +960,7 @@ test('skip-attributes', () => {
960960 skipAttributesThatMatchRegex : [ '/data-/gim' , '/aria-/gim' ] ,
961961 } ;
962962
963- expect ( runTest ( 'ignore -attributes.hbs' , input , options ) ) . toMatchInlineSnapshot ( `
963+ expect ( runTest ( 'skip -attributes.hbs' , input , options ) ) . toMatchInlineSnapshot ( `
964964 "
965965 <SomeComponent data-test-foo={{true}} aria-label=\\"bar\\" @foo={{true}} />
966966 "
@@ -976,7 +976,7 @@ test('skip-attributes with invalid regex', () => {
976976 skipAttributesThatMatchRegex : [ null ] ,
977977 } ;
978978
979- expect ( runTest ( 'ignore -attributes.hbs' , input , options ) ) . toMatchInlineSnapshot ( `
979+ expect ( runTest ( 'skip -attributes-invalid-regex .hbs' , input , options ) ) . toMatchInlineSnapshot ( `
980980 "
981981 <SomeComponent @data-test-foo={{true}} @aria-label=\\"bar\\" @foo={{true}} />
982982 "
You can’t perform that action at this time.
0 commit comments