File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ function* buildRegExps(context) {
40
40
// Utilities
41
41
regex . pattern ( [
42
42
// Utility Name / Group Name
43
- / - ? (?: \w + ) / ,
43
+ regex . any ( [
44
+ / - ? (?: \w + ) / ,
45
+
46
+ // This is here to make sure @container supports everything that other utilities do
47
+ / @ (?: \w + ) / ,
48
+ ] ) ,
44
49
45
50
// Normal/Arbitrary values
46
51
regex . optional (
Original file line number Diff line number Diff line change @@ -496,5 +496,21 @@ describe.each([
496
496
expect ( extractions ) . toContain ( value )
497
497
}
498
498
} )
499
+
500
+ it . each ( [
501
+ [ '@container' , [ '@container' ] ] ,
502
+ [ '@container/sidebar' , [ '@container/sidebar' ] ] ,
503
+ [ '@container/[sidebar]' , [ '@container/[sidebar]' ] ] ,
504
+ [ '@container-size' , [ '@container-size' ] ] ,
505
+ [ '@container-size/sidebar' , [ '@container-size/sidebar' ] ] ,
506
+ [ '@container-[size]/sidebar' , [ '@container-[size]/sidebar' ] ] ,
507
+ [ '@container-[size]/[sidebar]' , [ '@container-[size]/[sidebar]' ] ] ,
508
+ ] ) ( 'should support utilities starting with @ (%#)' , async ( content , expectations ) => {
509
+ let extractions = defaultExtractor ( content )
510
+
511
+ for ( let value of expectations ) {
512
+ expect ( extractions ) . toContain ( value )
513
+ }
514
+ } )
499
515
} )
500
516
} )
You can’t perform that action at this time.
0 commit comments