File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
- Ignore PostCSS nodes returned by ` addVariant ` ([ #8608 ] ( https://github.com/tailwindlabs/tailwindcss/pull/8608 ) )
15
15
- Fix missing spaces around arithmetic operators ([ #8615 ] ( https://github.com/tailwindlabs/tailwindcss/pull/8615 ) )
16
16
- Detect alpha value in CSS ` theme() ` function when using quotes ([ #8625 ] ( https://github.com/tailwindlabs/tailwindcss/pull/8625 ) )
17
+ - Fix "Maximum call stack size exceeded" bug ([ #8636 ] ( https://github.com/tailwindlabs/tailwindcss/pull/8636 ) )
17
18
18
19
## [ 3.1.2] - 2022-06-10
19
20
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function defaultExtractor(context) {
12
12
let results = [ ]
13
13
14
14
for ( let pattern of patterns ) {
15
- results . push ( ... ( content . match ( pattern ) ?? [ ] ) )
15
+ results = [ ... results , ... ( content . match ( pattern ) ?? [ ] ) ]
16
16
}
17
17
18
18
return results . filter ( ( v ) => v !== undefined ) . map ( clipAtBalancedParens )
Original file line number Diff line number Diff line change @@ -476,3 +476,9 @@ test('multi-word + arbitrary values + quotes', async () => {
476
476
477
477
expect ( extractions ) . toContain ( `grid-cols-['repeat(2)']` )
478
478
} )
479
+
480
+ test ( 'a lot of data' , ( ) => {
481
+ let extractions = defaultExtractor ( 'underline ' . repeat ( 2 ** 17 ) )
482
+
483
+ expect ( extractions ) . toContain ( `underline` )
484
+ } )
You can’t perform that action at this time.
0 commit comments