@@ -234,14 +234,12 @@ let groupModifierList: IGroupModifierPair[] = []
234234 * Convert group-* modifiers to sub-selectors
235235 *
236236 * @param nodeTree IHtmlNode[]
237- * @param deepth number
238237 * @param isChildNodes boolean
239238 *
240239 * @returns string
241240 */
242241function groupUtilityToSass (
243242 nodeTree : IHtmlNode [ ] ,
244- deepth : number ,
245243 isChildNodes = false
246244) : string {
247245 if ( ! isChildNodes ) {
@@ -264,7 +262,7 @@ function groupUtilityToSass(
264262 const groupModifierPair = < IGroupModifierPair > {
265263 modifier : matches ?. [ 1 ] ,
266264 utility : matches ?. [ 2 ] ,
267- className : getClassName ( node , deepth ) ,
265+ className : getClassName ( node , node . order ) ,
268266 }
269267
270268 groupModifierList . push ( groupModifierPair )
@@ -273,10 +271,10 @@ function groupUtilityToSass(
273271 if ( node . filterAttributes . class . match ( / ( g r o u p ) (? ! - ) / gm) ) {
274272 return groupSass
275273 } else if ( node . children . length ) {
276- groupUtilityToSass ( node . children , ++ deepth , true )
274+ groupUtilityToSass ( node . children , true )
277275 }
278276 } else {
279- groupUtilityToSass ( node . children , ++ deepth , true )
277+ groupUtilityToSass ( node . children , true )
280278 }
281279 }
282280 } )
@@ -377,7 +375,7 @@ function getSassTree(nodeTree: IHtmlNode[]) {
377375
378376 // convert group utilities
379377 if ( node . filterAttributes ?. class ?. match ( / ( g r o u p ) (? ! - ) / gm) ) {
380- groupUtilityTree = groupUtilityToSass ( node . children , node . order )
378+ groupUtilityTree = groupUtilityToSass ( node . children )
381379
382380 if ( groupUtilityTree !== '' ) {
383381 treeString += groupUtilityTree
0 commit comments