@@ -43,11 +43,6 @@ function isHasCCCType(property: string): property is HasCCC {
4343 return isHasCCCTypeKey ( property ) ;
4444}
4545
46- // Block the bug selector if the property is only numbers.
47- export const isNumeric = ( value : string ) : boolean => {
48- return / ^ \d + $ / . test ( value ) ;
49- } ;
50-
5146const dir = ( direname : string , relativePath : string ) => {
5247 return path . join ( direname , relativePath ) ;
5348} ;
@@ -98,7 +93,9 @@ export const camelToKebabCase = (property: string) => {
9893 const matches = property . match ( regex ) ;
9994 if ( matches ) {
10095 const [ , class1 , class2 ] = matches ;
101- return `:has(.${ class1 . replace ( / _ / g, '-' ) . toLowerCase ( ) } > ${ pascalCaseHtmlTags . includes ( class2 ) ? class2 . toLowerCase ( ) : '.' + class2 . replace ( / _ / g, '-' ) . toLowerCase ( ) } )` ;
96+ return `:has(.${ class1 . replace ( / _ / g, '-' ) . toLowerCase ( ) } > ${
97+ pascalCaseHtmlTags . includes ( class2 ) ? class2 . toLowerCase ( ) : '.' + class2 . replace ( / _ / g, '-' ) . toLowerCase ( )
98+ } )`;
10299 }
103100 }
104101
@@ -107,7 +104,9 @@ export const camelToKebabCase = (property: string) => {
107104 const matches = property . match ( regex ) ;
108105 if ( matches ) {
109106 const [ , class1 , class2 ] = matches ;
110- return `:has(.${ class1 . replace ( / _ / g, '-' ) . toLowerCase ( ) } + ${ pascalCaseHtmlTags . includes ( class2 ) ? class2 . toLowerCase ( ) : '.' + class2 . replace ( / _ / g, '-' ) . toLowerCase ( ) } )` ;
107+ return `:has(.${ class1 . replace ( / _ / g, '-' ) . toLowerCase ( ) } + ${
108+ pascalCaseHtmlTags . includes ( class2 ) ? class2 . toLowerCase ( ) : '.' + class2 . replace ( / _ / g, '-' ) . toLowerCase ( )
109+ } )`;
111110 }
112111 }
113112
0 commit comments