tailwindcss/crates
Jordan Pittman 6220cb8749 Fix Ruby files causing the CLI to hang (#17383)
Fixes #17379

The preprocessor we added to detect embedded languages uses a back
reference and given a long enough file with certain byte / character
patterns it'll cause what appears to be an indefinite hang (might just
be catastrophically exponential backtracking but not sure)

This replaces the one regex w/ back references with two, anchored,
multi-line regexes

Now we search for all the starting & ending delimiters in the file. We
then loop over all the starting delimiters, find the paired ending one,
and preprocess the content inside

---------

Co-authored-by: Philipp Spiess <hello@philippspiess.com>
2025-03-26 11:02:09 +01:00
..
classification-macros Improve boundary classification (#17005) 2025-03-07 00:00:54 +00:00
node Prepare v4.0.16 release (#17372) 2025-03-25 15:30:32 +01:00
oxide Fix Ruby files causing the CLI to hang (#17383) 2025-03-26 11:02:09 +01:00