File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ const UNNAMED = [];
17
17
18
18
const VOID_ELEMENTS = / ^ ( a r e a | b a s e | b r | c o l | e m b e d | h r | i m g | i n p u t | l i n k | m e t a | p a r a m | s o u r c e | t r a c k | w b r ) $ / ;
19
19
20
- const DASHED_ATTRS = / ^ ( a c c e p t C | h t t p E ) / ;
21
- const CAMEL_ATTRS = / ^ ( v i e w B | i s P ) / ;
22
- const COLON_ATTRS = / ^ ( x m l S | x l i n k H ) / ;
20
+ const DASHED_ATTRS = / ^ ( a c c e p t C | h t t p E | ( c l i p | c o l o r | f i l l | f o n t | g l y p h | m a r k e r | s t o p | s t r o k e | t e x t | v e r t ) [ A - Z ] ) / ;
21
+ const CAMEL_ATTRS = / ^ ( i s P | v i e w B ) / ;
22
+ const COLON_ATTRS = / ^ ( x l i n k | x m l | x m l n s ) [ A - Z ] / ;
23
23
24
24
const CAPITAL_REGEXP = / ( [ A - Z ] ) / g;
25
25
Original file line number Diff line number Diff line change @@ -112,9 +112,11 @@ describe('render', () => {
112
112
expect ( rendered ) . to . equal ( expected ) ;
113
113
} ) ;
114
114
115
- it ( 'should colonize certain attributes & leave certain attributes camelized' , ( ) => {
116
- let rendered = render ( < svg xmlSpace = "preserve" viewBox = "0 0 10 10" /> ) ,
117
- expected = `<svg xml:space="preserve" viewBox="0 0 10 10"></svg>` ;
115
+ it ( 'should colonize/dasherize certain attributes & leave certain attributes camelized' , ( ) => {
116
+ let rendered = render (
117
+ < svg xmlSpace = "preserve" viewBox = "0 0 10 10" fillRule = "nonzero" />
118
+ ) ,
119
+ expected = `<svg xml:space="preserve" viewBox="0 0 10 10" fill-rule="nonzero"></svg>` ;
118
120
119
121
expect ( rendered ) . to . equal ( expected ) ;
120
122
} ) ;
You can’t perform that action at this time.
0 commit comments