File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 34
34
.flow-root
35
35
.text-green-700.bg-green-100
36
36
.text-left= content
37
- %samp= output
37
+ %samp.font-mono{:data-foo => "bar"}= output
38
+ .col-span-4[aria-hidden=true]
39
+ .tracking-tight#headline
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ function assertPurged(result) {
54
54
expect ( result . css ) . toContain ( '.text-green-700' )
55
55
expect ( result . css ) . toContain ( '.bg-green-100' )
56
56
expect ( result . css ) . toContain ( '.text-left' )
57
+ expect ( result . css ) . toContain ( '.font-mono' )
58
+ expect ( result . css ) . toContain ( '.col-span-4' )
59
+ expect ( result . css ) . toContain ( '.tracking-tight' )
60
+ expect ( result . css ) . toContain ( '.tracking-tight' )
57
61
}
58
62
59
63
test ( 'purges unused classes' , ( ) => {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export default function purgeUnusedUtilities(config) {
67
67
const broadMatches = content . match ( / [ ^ < > " ' ` \s ] * [ ^ < > " ' ` \s : ] / g) || [ ]
68
68
69
69
// Capture classes within other delimiters like .block(class="w-1/2") in Pug
70
- const innerMatches = content . match ( / [ ^ < > " ' ` \s . ( ) = % ] * [ ^ < > " ' ` \s . ( ) = % : ] / g) || [ ]
70
+ const innerMatches = content . match ( / [ ^ < > " ' ` \s . ( ) { } \[ \] # = % ] * [ ^ < > " ' ` \s . ( ) { } \[ \] # = % : ] / g) || [ ]
71
71
72
72
return broadMatches . concat ( innerMatches )
73
73
} ,
You can’t perform that action at this time.
0 commit comments